Author: Armin Rigo <[email protected]>
Branch: null_byte_after_str
Changeset: r85943:3c41f19f26b5
Date: 2016-07-30 23:47 +0200
http://bitbucket.org/pypy/pypy/changeset/3c41f19f26b5/

Log:    tweak

diff --git a/rpython/rtyper/lltypesystem/rffi.py 
b/rpython/rtyper/lltypesystem/rffi.py
--- a/rpython/rtyper/lltypesystem/rffi.py
+++ b/rpython/rtyper/lltypesystem/rffi.py
@@ -864,9 +864,10 @@
 
     @jit.dont_look_inside
     def get_nonmovingbuffer_final_null(data):
-        buf, flag = get_nonmovingbuffer(data)
+        tup = get_nonmovingbuffer(data)
+        buf, flag = tup
         buf[len(data)] = lastchar
-        return buf, flag
+        return tup
     get_nonmovingbuffer_final_null._always_inline_ = 'try'
     get_nonmovingbuffer_final_null._annenforceargs_ = [strtype]
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to