summaryrefslogtreecommitdiffstats
path: root/Python/codecs.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index 2124824..046abe3 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -70,7 +70,7 @@ PyObject *normalizestring(const char *string)
if (ch == ' ')
ch = '-';
else
- ch = tolower(ch);
+ ch = tolower(Py_CHARMASK(ch));
p[i] = ch;
}
return v;
@@ -95,7 +95,7 @@ PyObject *_PyCodec_Lookup(const char *encoding)
{
PyInterpreterState *interp;
PyObject *result, *args = NULL, *v;
- int i, len;
+ Py_ssize_t i, len;
if (encoding == NULL) {
PyErr_BadArgument();