[pypy-commit] pypy strbuf-as-buffer: remove _annenforceargs_ entry from str2charp_gc

plan_rich pypy.commits at gmail.com
Thu Dec 8 09:14:03 EST 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: strbuf-as-buffer
Changeset: r88972:15c7297598dd
Date: 2016-12-08 15:13 +0100
http://bitbucket.org/pypy/pypy/changeset/15c7297598dd/

Log:	remove _annenforceargs_ entry from str2charp_gc

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
@@ -815,7 +815,7 @@
         copy_string_to_raw(ll_s, array, 0, i)
         array[i] = lastchar
         return array
-    str2charp_gc._annenforceargs_ = [strtype, bool]
+    str2charp_gc._annenforceargs_ = [strtype]
 
 
     # str -> already-existing char[maxsize]


More information about the pypy-commit mailing list