[pypy-svn] r63494 - pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Wed Apr 1 16:29:09 CEST 2009


Author: arigo
Date: Wed Apr  1 16:29:09 2009
New Revision: 63494

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/pyjitpl.py
Log:
Write the non-negativeness as an explicit assertion.


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/pyjitpl.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/pyjitpl.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/pyjitpl.py	Wed Apr  1 16:29:09 2009
@@ -154,6 +154,7 @@
         return bool(result)
 
     def getenv(self, i):
+        assert i >= 0
         j = i >> 1
         if i & 1:
             return self.constants[j]



More information about the Pypy-commit mailing list