diff options
author | Sjoerd Mullender <sjoerd@acm.org> | 2000-07-07 09:47:24 (GMT) |
---|---|---|
committer | Sjoerd Mullender <sjoerd@acm.org> | 2000-07-07 09:47:24 (GMT) |
commit | 2629bd5a338a6a6f37d2d6e0aa8e80a7aa31b164 (patch) | |
tree | 1746a4c8d2268d035222368e3fd4a286c5a63a96 /Objects | |
parent | 43279100f4b0dda7f2f444ae09d22a71ec2c5183 (diff) | |
download | cpython-2629bd5a338a6a6f37d2d6e0aa8e80a7aa31b164.zip cpython-2629bd5a338a6a6f37d2d6e0aa8e80a7aa31b164.tar.gz cpython-2629bd5a338a6a6f37d2d6e0aa8e80a7aa31b164.tar.bz2 |
Two more places where long should be used instead of int. Especially
true after revision 2.36 was checked in...
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index dcef11b..052a489b 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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 { |