[Python-3000-checkins] r61308 - python/branches/py3k/Modules/_localemodule.c
martin.v.loewis
python-3000-checkins at python.org
Sat Mar 8 11:59:49 CET 2008
Author: martin.v.loewis
Date: Sat Mar 8 11:59:49 2008
New Revision: 61308
Modified:
python/branches/py3k/Modules/_localemodule.c
Log:
Fix typo in assertion.
Modified: python/branches/py3k/Modules/_localemodule.c
==============================================================================
--- python/branches/py3k/Modules/_localemodule.c (original)
+++ python/branches/py3k/Modules/_localemodule.c Sat Mar 8 11:59:49 2008
@@ -67,7 +67,7 @@
}
/* 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);
More information about the Python-3000-checkins
mailing list