]> granicus.if.org Git - python/commitdiff
Two more places where long should be used instead of int. Especially
authorSjoerd Mullender <sjoerd@acm.org>
Fri, 7 Jul 2000 09:47:24 +0000 (09:47 +0000)
committerSjoerd Mullender <sjoerd@acm.org>
Fri, 7 Jul 2000 09:47:24 +0000 (09:47 +0000)
true after revision 2.36 was checked in...

Objects/unicodeobject.c

index dcef11bc8c459c55565c3370aa378c051652610c..052a489b4f008e7c75390c228ef04ece3f84bace 100644 (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 {