[pypy-commit] pypy s390x-backend: adding signed char to the list of bigendian conversions in rawffi.alt module
plan_rich
pypy.commits at gmail.com
Mon Feb 8 02:26:39 EST 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: s390x-backend
Changeset: r82113:398668348638
Date: 2016-02-08 08:25 +0100
http://bitbucket.org/pypy/pypy/changeset/398668348638/
Log: adding signed char to the list of bigendian conversions in
rawffi.alt module
diff --git a/rpython/rlib/libffi.py b/rpython/rlib/libffi.py
--- a/rpython/rlib/libffi.py
+++ b/rpython/rlib/libffi.py
@@ -215,7 +215,7 @@
# ======================================================================
-NARROW_INTEGER_TYPES = unrolling_iterable([rffi.CHAR,
+NARROW_INTEGER_TYPES = unrolling_iterable([rffi.CHAR, rffi.SIGNEDCHAR,
rffi.UCHAR, rffi.SHORT, rffi.USHORT, rffi.INT, rffi.UINT])
class Func(AbstractFuncPtr):
@@ -338,7 +338,7 @@
@jit.dont_look_inside
@specialize.arg(3)
def _do_call_int(self, funcsym, ll_args, TP):
- return self._do_call(funcsym, ll_args, TP)
+ return rffi.cast(rffi.SIGNED, self._do_call(funcsym, ll_args, TP))
#@jit.oopspec('libffi_call_float(self, funcsym, ll_args)')
@jit.dont_look_inside
More information about the pypy-commit
mailing list