mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix a compiler warning in _locale
This commit is contained in:
parent
3f528f0c1b
commit
2c5d3cbfb8
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ PyLocale_strxfrm(PyObject* self, PyObject* args)
|
|||
goto exit;
|
||||
}
|
||||
n2 = wcsxfrm(buf, s, n1);
|
||||
if (n2 >= n1) {
|
||||
if (n2 >= (size_t)n1) {
|
||||
/* more space needed */
|
||||
buf = PyMem_Realloc(buf, (n2+1)*sizeof(wchar_t));
|
||||
if (!buf) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue