mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-20 03:52:25 +03:00
python: Fix compiler warnings when building python3 bindings
This commit is contained in:
@@ -296,7 +296,7 @@ xmlPythonFileReadRaw (void * context, char * buffer, int len) {
|
||||
#ifdef PyUnicode_Check
|
||||
} else if PyUnicode_Check (ret) {
|
||||
#if PY_VERSION_HEX >= 0x03030000
|
||||
size_t size;
|
||||
Py_ssize_t size;
|
||||
const char *tmp;
|
||||
|
||||
/* tmp doesn't need to be deallocated */
|
||||
@@ -361,7 +361,7 @@ xmlPythonFileRead (void * context, char * buffer, int len) {
|
||||
#ifdef PyUnicode_Check
|
||||
} else if PyUnicode_Check (ret) {
|
||||
#if PY_VERSION_HEX >= 0x03030000
|
||||
size_t size;
|
||||
Py_ssize_t size;
|
||||
const char *tmp;
|
||||
|
||||
/* tmp doesn't need to be deallocated */
|
||||
|
Reference in New Issue
Block a user