Commit 2629bd5a authored by Sjoerd Mullender's avatar Sjoerd Mullender

Two more places where long should be used instead of int. Especially

true after revision 2.36 was checked in...
parent 43279100
......@@ -994,7 +994,7 @@ PyObject *PyUnicode_AsUTF16String(PyObject *unicode)
static
int unicodeescape_decoding_error(const char **source,
unsigned int *x,
unsigned long *x,
const char *errors,
const char *details)
{
......@@ -1009,7 +1009,7 @@ int unicodeescape_decoding_error(const char **source,
return 0;
}
else if (strcmp(errors,"replace") == 0) {
*x = (unsigned int)Py_UNICODE_REPLACEMENT_CHARACTER;
*x = (unsigned long)Py_UNICODE_REPLACEMENT_CHARACTER;
return 0;
}
else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment