Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r94334:4d2fb1545820
Date: 2018-04-15 08:59 +0300
http://bitbucket.org/pypy/pypy/changeset/4d2fb1545820/

Log:    fix python2-only test

diff --git a/pypy/module/cpyext/test/test_bufferobject.py 
b/pypy/module/cpyext/test/test_bufferobject.py
--- a/pypy/module/cpyext/test/test_bufferobject.py
+++ b/pypy/module/cpyext/test/test_bufferobject.py
@@ -83,7 +83,7 @@
                 if (((unsigned char*)bp.buf)[0] != '0') {
                     void * buf = (void*)bp.buf;
                     unsigned char val[4];
-                    unsigned char * s = PyString_AsString(obj);
+                    char * s = PyString_AsString(obj);
                     memcpy(val, bp.buf, 4);
                     PyBuffer_Release(&bp);
                     if (PyObject_GetBuffer(obj, &bp, PyBUF_SIMPLE) == -1)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to