From d89c98f733a979534be41c354e6fa59568b695d1 Mon Sep 17 00:00:00 2001 From: "Stephen F. Booth" Date: Sat, 7 Dec 2024 23:35:21 -0600 Subject: [PATCH] Revert previous commit --- taglib/shn/shnfile.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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