summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-03-08 10:59:49 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-03-08 10:59:49 (GMT)
commitce7a112898e53f7cda6845122277271c62029ef6 (patch)
tree7bd6ff1e375af55d9e313e56e63f3ffd225b8b4a /Modules/_localemodule.c
parenta69e1efbfb38b2a9826781a8cb5c20991525ba03 (diff)
downloadcpython-ce7a112898e53f7cda6845122277271c62029ef6.zip
cpython-ce7a112898e53f7cda6845122277271c62029ef6.tar.gz
cpython-ce7a112898e53f7cda6845122277271c62029ef6.tar.bz2
Fix typo in assertion.
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r--Modules/_localemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 0b657c4..1fba6b1 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);