From 67f44071cdb4ac16401687753b675384a177b81e Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Sat, 14 Nov 2015 14:49:59 +0900 Subject: [PATCH] Fix the usage of boost::endian::endian_reverse(). --- taglib/toolkit/tutils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/taglib/toolkit/tutils.h b/taglib/toolkit/tutils.h index 5c204d85..36e0afd3 100644 --- a/taglib/toolkit/tutils.h +++ b/taglib/toolkit/tutils.h @@ -63,7 +63,7 @@ namespace TagLib { #if defined(HAVE_BOOST_BYTESWAP) - return boost::endian::endian_reverse(x); + return boost::endian::endian_reverse(static_cast(x)); #elif defined(HAVE_GCC_BYTESWAP) @@ -99,7 +99,7 @@ namespace TagLib { #if defined(HAVE_BOOST_BYTESWAP) - return boost::endian::endian_reverse(x); + return boost::endian::endian_reverse(static_cast(x)); #elif defined(HAVE_GCC_BYTESWAP) @@ -138,7 +138,7 @@ namespace TagLib { #if defined(HAVE_BOOST_BYTESWAP) - return boost::endian::endian_reverse(x); + return boost::endian::endian_reverse(static_cast(x)); #elif defined(HAVE_GCC_BYTESWAP) -- 2.40.0