mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
43279100f4
commit
2629bd5a33
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue