diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-09-28 17:55:19 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:18 -0300 |
commit | 6b21c2fa5eeb6a7c7b6533f1c966a47d8ef07e69 (patch) | |
tree | 84dd9809a679171e5d2e707941ed37402d74ba6b /libshiboken/sbkstring.cpp | |
parent | e5e92df4a71ec01cbe849907b7113f0f65eb5163 (diff) |
Fixed regressions caused on python2.x.
Diffstat (limited to 'libshiboken/sbkstring.cpp')
-rw-r--r-- | libshiboken/sbkstring.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libshiboken/sbkstring.cpp b/libshiboken/sbkstring.cpp index 6a23511ac..d9de1a44f 100644 --- a/libshiboken/sbkstring.cpp +++ b/libshiboken/sbkstring.cpp @@ -69,7 +69,8 @@ bool concat(PyObject** val1, PyObject* val2) *val1 = result; return true; #else - return false; + PyString_Concat(val1, val2); + return true; #endif } @@ -101,7 +102,7 @@ int compare(PyObject* val1, const char* val2) #if PY_MAJOR_VERSION >= 3 return PyUnicode_CompareWithASCIIString(val1, val2); #else - return strcmp(PyString_AS_STRING(X), Y); + return strcmp(PyString_AS_STRING(val1), val2); #endif } |