mirror of https://github.com/python/cpython
Fix typo in assertion.
This commit is contained in:
parent
a69e1efbfb
commit
ce7a112898
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue