diff options
author | Eugene Sandulenko | 2015-01-04 22:09:46 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-01-04 22:10:17 +0100 |
commit | 17fe53a34c442da7ccf28721179a88ed2087f7b2 (patch) | |
tree | 648729753d9f5d901c91749a674d12b7d67caec7 | |
parent | 1084f2eea67d3a7f2293392af0c7a2c1d97b1b2b (diff) | |
download | scummvm-rg350-17fe53a34c442da7ccf28721179a88ed2087f7b2.tar.gz scummvm-rg350-17fe53a34c442da7ccf28721179a88ed2087f7b2.tar.bz2 scummvm-rg350-17fe53a34c442da7ccf28721179a88ed2087f7b2.zip |
SWORD25: Hopefully fix compilation errors
-rw-r--r-- | engines/sword25/util/double_serialization.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword25/util/double_serialization.cpp b/engines/sword25/util/double_serialization.cpp index 48fd75cb33..0d41ddc503 100644 --- a/engines/sword25/util/double_serialization.cpp +++ b/engines/sword25/util/double_serialization.cpp @@ -77,13 +77,13 @@ uint64 encodeDouble_64(double value) { uint64 uintsignificand = (uint64)shiftedsignificand; return ((uint64)(value < 0 ? 1 : 0) << 63) | // Sign ((uint64)(exponent + 1023) << 52) | // Exponent stored as an offset to 1023 - (uintsignificand & 0x000FFFFFFFFFFFFF); // significand with MSB inferred + (uintsignificand & 0x000FFFFFFFFFFFFFLL); // significand with MSB inferred } double decodeDouble_64(uint64 value) { // Expand the exponent and significand int exponent = (int)((value >> 52) & 0x7FF) - 1023; - double expandedsignificand = (double)(0x10000000000000 /* Inferred MSB */ | (value & 0x000FFFFFFFFFFFFF)); + double expandedsignificand = (double)(0x10000000000000LL /* Inferred MSB */ | (value & 0x000FFFFFFFFFFFFFLL)); // Deflate the significand int temp; @@ -93,7 +93,7 @@ double decodeDouble_64(uint64 value) { double returnValue = ldexp(significand, exponent); // Check the sign bit and return - return ((value & 0x8000000000000000) == 0x8000000000000000) ? -returnValue : returnValue; + return ((value & 0x8000000000000000LL) == 0x8000000000000000LL) ? -returnValue : returnValue; } CompactSerializedDouble encodeDouble_Compact(double value) { |