From 2629bd5a338a6a6f37d2d6e0aa8e80a7aa31b164 Mon Sep 17 00:00:00 2001 From: Sjoerd Mullender Date: Fri, 7 Jul 2000 09:47:24 +0000 Subject: [PATCH] Two more places where long should be used instead of int. Especially true after revision 2.36 was checked in... --- Objects/unicodeobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index dcef11bc8c..052a489b4f 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 { -- 2.49.0