diff --git a/taglib/shn/shnfile.cpp b/taglib/shn/shnfile.cpp index e54c318f..d3f5f7fc 100644 --- a/taglib/shn/shnfile.cpp +++ b/taglib/shn/shnfile.cpp @@ -226,22 +226,19 @@ namespace { if constexpr (std::is_same_v) { if(big != system_big) value = Utils::byteSwap(static_cast(value)); - return value; } else if constexpr (std::is_same_v) { if(big != system_big) value = Utils::byteSwap(static_cast(value)); - return value; } else if constexpr (std::is_same_v) { if(big != system_big) value = Utils::byteSwap(static_cast(value)); - return value; } else static_assert(false, "Invalid typename T"); - return 0; + return value; } uint64_t read_uint_big64(void *p, uintptr_t n) noexcept