Author: Armin Rigo <[email protected]>
Branch:
Changeset: r44543:aea2449cf67c
Date: 2011-05-27 13:31 +0200
http://bitbucket.org/pypy/pypy/changeset/aea2449cf67c/
Log: Untested: fix to make sure we pass a signed value to
charpsize2str().
diff --git a/pypy/module/oracle/interp_variable.py
b/pypy/module/oracle/interp_variable.py
--- a/pypy/module/oracle/interp_variable.py
+++ b/pypy/module/oracle/interp_variable.py
@@ -601,6 +601,7 @@
def getValueProc(self, space, pos):
ptr = rffi.ptradd(self.data, pos * self.bufferSize)
length = rffi.cast(roci.Ptr(roci.ub4), ptr)[0]
+ length = rffi.cast(lltype.Signed, length)
ptr = rffi.ptradd(ptr, rffi.sizeof(roci.ub4))
return space.wrap(rffi.charpsize2str(ptr, length))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit