[pypy-svn] r18284 - pypy/dist/pypy/translator/c

tismer at codespeak.net tismer at codespeak.net
Sat Oct 8 16:08:35 CEST 2005


Author: tismer
Date: Sat Oct  8 16:08:35 2005
New Revision: 18284

Modified:
   pypy/dist/pypy/translator/c/node.py
Log:
generating a small comment that tells about patching

Modified: pypy/dist/pypy/translator/c/node.py
==============================================================================
--- pypy/dist/pypy/translator/c/node.py	(original)
+++ pypy/dist/pypy/translator/c/node.py	Sat Oct  8 16:08:35 2005
@@ -416,7 +416,8 @@
             node.where_to_copy_me.append('&%s' % access_expr)
         elif typeOf(value) == Float and isinf(value):
             db.infs.append(('%s' % access_expr, db.get(value)))
-            expr = '0.0'
+            expr = '0.0 /* patched later by %sinfinity */' % (
+                '-+'[value > 0])
         else:
             expr = db.get(value)
             if typeOf(value) is Void:



More information about the Pypy-commit mailing list