[pypy-svn] r42450 - pypy/dist/pypy/rpython/ootypesystem

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Apr 29 23:55:55 CEST 2007


Author: cfbolz
Date: Sun Apr 29 23:55:54 2007
New Revision: 42450

Modified:
   pypy/dist/pypy/rpython/ootypesystem/rstr.py
Log:
workaround for the inlining bug


Modified: pypy/dist/pypy/rpython/ootypesystem/rstr.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/rstr.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/rstr.py	Sun Apr 29 23:55:54 2007
@@ -196,7 +196,11 @@
         return sign * val
 
     def ll_float(ll_str):
-        return ootype.ooparse_float(ll_str)
+        # XXX workaround for an inlining bug
+        try:
+            return ootype.ooparse_float(ll_str)
+        except ValueError:
+            raise
     
     # interface to build strings:
     #   x = ll_build_start(n)



More information about the Pypy-commit mailing list