diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2008-03-08 10:59:49 (GMT) |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2008-03-08 10:59:49 (GMT) |
| commit | ce7a112898e53f7cda6845122277271c62029ef6 (patch) | |
| tree | 7bd6ff1e375af55d9e313e56e63f3ffd225b8b4a | |
| parent | a69e1efbfb38b2a9826781a8cb5c20991525ba03 (diff) | |
| download | cpython-ce7a112898e53f7cda6845122277271c62029ef6.zip cpython-ce7a112898e53f7cda6845122277271c62029ef6.tar.gz cpython-ce7a112898e53f7cda6845122277271c62029ef6.tar.bz2 | |
Fix typo in assertion.
| -rw-r--r-- | Modules/_localemodule.c | 2 |
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); |
