Skip to content

Commit 2c5d3cb

Browse files
author
Victor Stinner
committed
Fix a compiler warning in _locale
1 parent 3f528f0 commit 2c5d3cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_localemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ PyLocale_strxfrm(PyObject* self, PyObject* args)
292292
goto exit;
293293
}
294294
n2 = wcsxfrm(buf, s, n1);
295-
if (n2 >= n1) {
295+
if (n2 >= (size_t)n1) {
296296
/* more space needed */
297297
buf = PyMem_Realloc(buf, (n2+1)*sizeof(wchar_t));
298298
if (!buf) {

0 commit comments

Comments
 (0)