From e271ac85218162008659069fafd2642ae8ee7a18 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 7 Dec 2007 17:50:23 +0000 Subject: [PATCH] Correct function selected. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1030 38d2e660-2303-0410-9eaa-f027e97ec537 --- mware/byteorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mware/byteorder.h b/mware/byteorder.h index e2d7e481..907f10ae 100644 --- a/mware/byteorder.h +++ b/mware/byteorder.h @@ -219,7 +219,7 @@ template<> INLINE uint32_t swab(uint32_t x) { return swab32(x); } template<> INLINE uint64_t swab(uint64_t x) { return swab64(x); } template<> INLINE int16_t swab(int16_t x) { return static_cast(swab16(static_cast(x))); } template<> INLINE int32_t swab(int32_t x) { return static_cast(swab32(static_cast(x))); } -template<> INLINE int64_t swab(int64_t x) { return static_cast(swab32(static_cast(x))); } +template<> INLINE int64_t swab(int64_t x) { return static_cast(swab64(static_cast(x))); } template<> INLINE float swab(float x) { return swab_float(x); } /// Type generic conversion from CPU byte order to big-endian byte order. -- 2.25.1