Fix typo in assertion.

This commit is contained in:
Martin v. Löwis 2008-03-08 10:59:49 +00:00
parent a69e1efbfb
commit ce7a112898
1 changed files with 1 additions and 1 deletions

View 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);