diff options
| -rw-r--r-- | miasm/jitter/compat_py23.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm/jitter/compat_py23.h b/miasm/jitter/compat_py23.h index 83574e36..1993142e 100644 --- a/miasm/jitter/compat_py23.h +++ b/miasm/jitter/compat_py23.h @@ -25,7 +25,7 @@ #define PyGetStr(dest, name) \ if (!PyUnicode_Check((name))) \ RAISE(PyExc_TypeError,"Page name must be bytes"); \ - (dest) = PyUnicode_AsUTF8((name)) + (dest) = (char*)PyUnicode_AsUTF8((name)) @@ -58,7 +58,7 @@ #define PyGetStr(dest, name) \ if (!PyString_Check((name))) \ RAISE(PyExc_TypeError,"Page name must be bytes"); \ - (dest) = PyString_AsString((name)) + (dest) = (char*)PyString_AsString((name)) #endif |