Commits

Armin Rigo committed b419aa4

Fix the last issue in test_typed

Comments (0)

Files changed (1)

pypy/translator/c/test/test_genc.py

         return "%d:%d" % (intmask(v >> 32), intmask(v & unsigned_ffffffff))
     elif isinstance(v, r_longlong):
         return "%d:%d" % (intmask(v >> 32), intmask(v & signed_ffffffff))
+    elif isinstance(v, float):
+        return repr(v)    # extra precision than str(v)
     return str(v)
 
 def parse_longlong(a):