[pypy-commit] pypy propogate-nans: another 32 bit fix
mattip
noreply at buildbot.pypy.org
Fri Nov 6 09:38:34 EST 2015
Author: mattip <matti.picus at gmail.com>
Branch: propogate-nans
Changeset: r80567:457f9caf2efa
Date: 2015-11-06 16:38 +0200
http://bitbucket.org/pypy/pypy/changeset/457f9caf2efa/
Log: another 32 bit fix
diff --git a/rpython/rlib/rstruct/ieee.py b/rpython/rlib/rstruct/ieee.py
--- a/rpython/rlib/rstruct/ieee.py
+++ b/rpython/rlib/rstruct/ieee.py
@@ -148,7 +148,7 @@
mant = r_ulonglong(0)
exp = MAX_EXP - MIN_EXP + 2
elif rfloat.isnan(x):
- asint = float2longlong(x)
+ asint = cast(ULONGLONG, float2longlong(x))
mant = asint & ((r_ulonglong(1) << 52) - 1)
sign = asint < 0
# shift off lower bits, perhaps losing data
@@ -212,7 +212,7 @@
mant = r_ulonglong(0)
exp = MAX_EXP - MIN_EXP + 2
elif rfloat.isnan(x): # rfloat.isnan(x):
- asint = float2longlong(x)
+ asint = cast(ULONGLONG, float2longlong(x))
mant = asint & ((r_ulonglong(1) << 52) - 1)
sign = asint < 0
exp = MAX_EXP - MIN_EXP + 2
More information about the pypy-commit
mailing list