[pypy-svn] r13027 - pypy/branch/rpython-refactoring
pedronis at codespeak.net
pedronis at codespeak.net
Fri Jun 3 03:02:18 CEST 2005
Author: pedronis
Date: Fri Jun 3 03:02:18 2005
New Revision: 13027
Modified:
pypy/branch/rpython-refactoring/rfloat.py
Log:
fix int->float conversion
Modified: pypy/branch/rpython-refactoring/rfloat.py
==============================================================================
--- pypy/branch/rpython-refactoring/rfloat.py (original)
+++ pypy/branch/rpython-refactoring/rfloat.py Fri Jun 3 03:02:18 2005
@@ -109,7 +109,7 @@
class __extend__(pairtype(IntegerRepr, FloatRepr)):
def convert_from_to((r_from, r_to), v, llops):
- if r_from.unsigned:
+ if r_from.lowleveltype == Unsigned:
if debug: print 'explicit cast_uint_to_float'
return llops.genop('cast_uint_to_float', [v], resulttype=Float)
else:
More information about the Pypy-commit
mailing list