Author: Armin Rigo <[email protected]>
Branch: win32-stdcall
Changeset: r2304:c0117c1c1b8a
Date: 2015-10-05 19:29 +0200
http://bitbucket.org/cffi/cffi/changeset/c0117c1c1b8a/

Log:    fix msvc warning

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -3644,13 +3644,13 @@
            funcptr    [ctresult, ellipsis+abi, num_args, ctargs...]
     */
     PyObject *key, *y;
-    const void **pkey;
+    void *pkey;
 
     key = PyBytes_FromStringAndSize(NULL, keylength * sizeof(void *));
     if (key == NULL)
         goto error;
 
-    pkey = (const void **)PyBytes_AS_STRING(key);
+    pkey = PyBytes_AS_STRING(key);
     memcpy(pkey, unique_key, keylength * sizeof(void *));
 
     y = PyDict_GetItem(unique_cache, key);
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to