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

true after revision 2.36 was checked in...
This commit is contained in:
Sjoerd Mullender 2000-07-07 09:47:24 +00:00
parent 43279100f4
commit 2629bd5a33

View file

@ -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 {