diff options
-rw-r--r-- | engines/sword25/util/double_serialization.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/util/double_serialization.cpp b/engines/sword25/util/double_serialization.cpp index 73da296e40..13fa42b6be 100644 --- a/engines/sword25/util/double_serialization.cpp +++ b/engines/sword25/util/double_serialization.cpp @@ -33,7 +33,7 @@ SerializedDouble encodeDouble(double value) { double significand = frexp(value, &exponent); // Shift the the first part of the significand into the integer range - double shiftedsignificandPart = ldexp(abs(significand), 32); + double shiftedsignificandPart = ldexp(fabs(significand), 32); uint32 significandOne = uint32(floor(shiftedsignificandPart)); // Shift the remainder of the significand into the integer range |