diff --git a/taglib/shn/shnfile.cpp b/taglib/shn/shnfile.cpp index d3f5f7fc..e54c318f 100644 --- a/taglib/shn/shnfile.cpp +++ b/taglib/shn/shnfile.cpp @@ -226,19 +226,22 @@ 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 value; + return 0; } uint64_t read_uint_big64(void *p, uintptr_t n) noexcept