[pypy-svn] r47458 - pypy/dist/pypy/interpreter
mwh at codespeak.net
mwh at codespeak.net
Mon Oct 15 01:04:48 CEST 2007
Author: mwh
Date: Mon Oct 15 01:04:48 2007
New Revision: 47458
Modified:
pypy/dist/pypy/interpreter/gateway.py
Log:
this makes test_gateway pass on my 64-bit python, but it's obviously a bit of a
hack.
translation gets as far as rtyping now...
Modified: pypy/dist/pypy/interpreter/gateway.py
==============================================================================
--- pypy/dist/pypy/interpreter/gateway.py (original)
+++ pypy/dist/pypy/interpreter/gateway.py Mon Oct 15 01:04:48 2007
@@ -20,7 +20,7 @@
from pypy.interpreter.argument import Arguments, AbstractArguments
from pypy.tool.sourcetools import NiceCompile, compile2
from pypy.rlib.jit import hint
-from pypy.rlib.rarithmetic import r_longlong
+from pypy.rlib.rarithmetic import r_longlong, r_int
# internal non-translatable parts:
import py
@@ -212,8 +212,12 @@
def visit__object(self, typ):
if typ not in (int, str, float, r_longlong):
assert False, "unsupported basic type in uwnrap_spec"
+ if typ is r_int is r_longlong:
+ name = 'r_longlong'
+ else:
+ name = typ.__name__
self.run_args.append("space.%s_w(%s)" %
- (typ.__name__, self.scopenext()))
+ (name, self.scopenext()))
def visit_index(self, typ):
self.run_args.append("space.getindex_w(%s, space.w_OverflowError)"
More information about the Pypy-commit
mailing list