Commit 2c5d3cbf authored by Victor Stinner's avatar Victor Stinner

Fix a compiler warning in _locale

parent 3f528f0c
...@@ -292,7 +292,7 @@ PyLocale_strxfrm(PyObject* self, PyObject* args) ...@@ -292,7 +292,7 @@ PyLocale_strxfrm(PyObject* self, PyObject* args)
goto exit; goto exit;
} }
n2 = wcsxfrm(buf, s, n1); n2 = wcsxfrm(buf, s, n1);
if (n2 >= n1) { if (n2 >= (size_t)n1) {
/* more space needed */ /* more space needed */
buf = PyMem_Realloc(buf, (n2+1)*sizeof(wchar_t)); buf = PyMem_Realloc(buf, (n2+1)*sizeof(wchar_t));
if (!buf) { if (!buf) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment