Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.6
Changeset: r69639:b7d5755c8c60
Date: 2014-03-03 05:00 -0500
http://bitbucket.org/pypy/pypy/changeset/b7d5755c8c60/
Log: another rawffi fix
diff --git a/pypy/module/_rawffi/interp_rawffi.py
b/pypy/module/_rawffi/interp_rawffi.py
--- a/pypy/module/_rawffi/interp_rawffi.py
+++ b/pypy/module/_rawffi/interp_rawffi.py
@@ -418,12 +418,10 @@
if c in TYPEMAP_PTR_LETTERS:
res = func(add_arg, argdesc, rffi.VOIDP)
return space.wrap(rffi.cast(lltype.Unsigned, res))
- elif c == 'q' or c == 'Q' or c == 'L' or c == 'c' or c == 'u':
- return space.wrap(func(add_arg, argdesc, ll_type))
elif c == 'f' or c == 'd' or c == 'g':
return space.wrap(float(func(add_arg, argdesc, ll_type)))
else:
- return space.wrap(intmask(func(add_arg, argdesc, ll_type)))
+ return space.wrap(func(add_arg, argdesc, ll_type))
raise OperationError(space.w_TypeError,
space.wrap("cannot directly read value"))
wrap_value._annspecialcase_ = 'specialize:arg(1)'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit