diff options
author | Matthew Hoops | 2015-04-11 16:05:50 -0400 |
---|---|---|
committer | Matthew Hoops | 2015-04-11 16:12:47 -0400 |
commit | 797506eff79126e60ec97e8377b5a6d632769564 (patch) | |
tree | 64860de19913fd31812354ac423c2b2e68449ae5 /engines/sword25/util | |
parent | dd63cef93efce72b300c99a6a8b9415a111c2b82 (diff) | |
download | scummvm-rg350-797506eff79126e60ec97e8377b5a6d632769564.tar.gz scummvm-rg350-797506eff79126e60ec97e8377b5a6d632769564.tar.bz2 scummvm-rg350-797506eff79126e60ec97e8377b5a6d632769564.zip |
SWORD25: Use fabs for absolute value of doubles
Diffstat (limited to 'engines/sword25/util')
-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 |