From: Martin v. Löwis Date: Sat, 8 Mar 2008 10:59:49 +0000 (+0000) Subject: Fix typo in assertion. X-Git-Tag: v3.0a4~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce7a112898e53f7cda6845122277271c62029ef6;p=thirdparty%2FPython%2Fcpython.git Fix typo in assertion. --- diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 0b657c408134..1fba6b159d64 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);