Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r66965:55b0874f6bd2
Date: 2013-09-15 20:41 +0200
http://bitbucket.org/pypy/pypy/changeset/55b0874f6bd2/

Log:    Pfff, the wrapper is needed. Test showing it.

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
@@ -1138,6 +1138,5 @@
 c_memcpy = llexternal("memcpy",
             [VOIDP, VOIDP, SIZE_T],
             lltype.Void,
-            _nowrapper=True, releasegil=False
+            releasegil=False
         )
-
diff --git a/rpython/rtyper/lltypesystem/test/test_rffi.py 
b/rpython/rtyper/lltypesystem/test/test_rffi.py
--- a/rpython/rtyper/lltypesystem/test/test_rffi.py
+++ b/rpython/rtyper/lltypesystem/test/test_rffi.py
@@ -814,7 +814,7 @@
 def test_c_memcpy():
     p1 = str2charp("hello")
     p2 = str2charp("WORLD")
-    c_memcpy(cast(VOIDP, p2), cast(VOIDP, p1), cast(SIZE_T, 3))
+    c_memcpy(cast(VOIDP, p2), cast(VOIDP, p1), 3)
     assert charp2str(p1) == "hello"
     assert charp2str(p2) == "helLD"
     free_charp(p1)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to