Interpreter: use IntDouble instead of casts

This commit is contained in:
Tillmann Karras 2015-05-11 14:25:43 +02:00
parent 8290fa1e46
commit 9723a4e2ed
1 changed files with 3 additions and 3 deletions

View File

@ -76,9 +76,9 @@ inline double ForceDouble(double d)
inline double Force25Bit(double d) inline double Force25Bit(double d)
{ {
u64 di = *(u64*)&d; MathUtil::IntDouble x(d);
di = (di & 0xFFFFFFFFF8000000ULL) + (di & 0x8000000); x.i = (x.i & 0xFFFFFFFFF8000000ULL) + (x.i & 0x8000000);
return *(double*)&di; return x.d;
} }
// these functions allow globally modify operations behaviour // these functions allow globally modify operations behaviour