summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrue-pasky <soundsdx@gmail.com>2019-01-17 17:09:18 +0500
committerGitHub <noreply@github.com>2019-01-17 17:09:18 +0500
commit79594a75a2cf301f56d1378b7e15b4def27d0129 (patch)
tree38a6a1c4294c4e382c2f39cec98db4b9873f1160
parent5ecb4ba9519e456c064f2d84c32ee4bd9d390374 (diff)
downloadcython-79594a75a2cf301f56d1378b7e15b4def27d0129.tar.gz
Fix incompatibility with C89
It fixes error ``` src\lxml\etree.c(241210) : error C2275: 'PyObject' : illegal use of this type as an expression ``` when installing lxml 4.3.0 to pypy2 v6.0.0 on Windows.
-rw-r--r--Cython/Utility/StringTools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/StringTools.c b/Cython/Utility/StringTools.c
index 4862a25a5..8147778e5 100644
--- a/Cython/Utility/StringTools.c
+++ b/Cython/Utility/StringTools.c
@@ -915,8 +915,8 @@ static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, char* chars,
#else
// non-CPython
{
- uval = NULL;
PyObject *sign = NULL, *padding = NULL;
+ uval = NULL;
if (uoffset > 0) {
prepend_sign = !!prepend_sign;
if (uoffset > prepend_sign) {