[pypy-svn] r46956 - pypy/dist/pypy/module/struct

arigo at codespeak.net arigo at codespeak.net
Thu Sep 27 14:44:08 CEST 2007


Author: arigo
Date: Thu Sep 27 14:44:08 2007
New Revision: 46956

Modified:
   pypy/dist/pypy/module/struct/standardfmttable.py
Log:
Translation fix.


Modified: pypy/dist/pypy/module/struct/standardfmttable.py
==============================================================================
--- pypy/dist/pypy/module/struct/standardfmttable.py	(original)
+++ pypy/dist/pypy/module/struct/standardfmttable.py	Thu Sep 27 14:44:08 2007
@@ -69,6 +69,8 @@
         max = (2 ** (8*size-1)) - 1
         if size <= native_int_size:
             accept_method = 'accept_int_arg'
+            min = int(min)
+            max = int(max)
         else:
             accept_method = 'accept_longlong_arg'
             min = r_longlong(min)



More information about the Pypy-commit mailing list