diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mpzmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c index e1fd7bf..7ae6937 100644 --- a/Modules/mpzmodule.c +++ b/Modules/mpzmodule.c @@ -969,7 +969,7 @@ MPZ_mpz(self, args) mpz_clear(&mplongdigit); } else if (PyString_Check(objp)) { - char *cp = PyString_AS_STRING(objp); + unsigned char *cp = (unsigned char *)PyString_AS_STRING(objp); int len = PyString_GET_SIZE(objp); MP_INT mplongdigit; |