Author: Wim Lavrijsen <[email protected]>
Branch: cling-support
Changeset: r86325:67349a4ab510
Date: 2016-08-18 16:41 -0700
http://bitbucket.org/pypy/pypy/changeset/67349a4ab510/
Log: annotation fix
diff --git a/pypy/module/cppyy/capi/loadable_capi.py
b/pypy/module/cppyy/capi/loadable_capi.py
--- a/pypy/module/cppyy/capi/loadable_capi.py
+++ b/pypy/module/cppyy/capi/loadable_capi.py
@@ -534,8 +534,8 @@
return pystr
def c_charp2stdstring(space, svalue, sz):
- return _cdata_to_cobject(
- space, call_capi(space, 'charp2stdstring', [_Arg(s=svalue),
_Arg(h=sz)]))
+ return _cdata_to_cobject(space, call_capi(space, 'charp2stdstring',
+ [_Arg(s=svalue), _Arg(h=rffi.cast(rffi.ULONG, sz))]))
def c_stdstring2charp(space, cppstr):
sz = lltype.malloc(rffi.SIZE_TP.TO, 1, flavor='raw')
try:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit