]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in assertion.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 8 Mar 2008 10:59:49 +0000 (10:59 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 8 Mar 2008 10:59:49 +0000 (10:59 +0000)
Modules/_localemodule.c

index 0b657c40813446b0210525ef039e343380473b09..1fba6b159d6488bd89370df492554c309917f25f 100644 (file)
@@ -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);