summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Modules/_localemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 0b657c4081..1fba6b159d 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -67,7 +67,7 @@ str2uni(const char* s)
}
/* This shouldn't fail now */
res1 = mbstowcs(dest, s, needed+1);
- assert(res == needed);
+ assert(res1 == needed);
res2 = PyUnicode_FromWideChar(dest, res1);
if (dest != smallbuf)
PyMem_Free(dest);