From 6f5546200c8c19bbf480bea7f635080bf4c0e3cc Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 13 Aug 2015 03:18:11 +0200 Subject: [PATCH] fixed toFloat32 --- conversion/binaryconversionprivate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conversion/binaryconversionprivate.h b/conversion/binaryconversionprivate.h index 5054486..c13e9d8 100644 --- a/conversion/binaryconversionprivate.h +++ b/conversion/binaryconversionprivate.h @@ -146,11 +146,11 @@ LIB_EXPORT inline uint64 toUInt64(const char *value) LIB_EXPORT inline float32 toFloat32(const char *value) { #if CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL == 0 - int32 val = toInt64(value); + int32 val = toInt32(value); char *c = reinterpret_cast(&val); return *reinterpret_cast(c); #else - int32 val = toInt64(value); + int32 val = toInt32(value); char *c = reinterpret_cast(&val); return *reinterpret_cast(c); #endif