|
|
@@ -17,8 +17,8 @@ internal static class Bit32Helper
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
|
public static uint ToUInt32(double d)
|
|
|
{
|
|
|
- d = Math.IEEERemainder(d, Math.Pow(2.0, 32.0));
|
|
|
- return (uint)d;
|
|
|
+ var x = (int)Math.IEEERemainder(d, Math.Pow(2.0, 32.0));
|
|
|
+ return (uint)x;
|
|
|
}
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|