From: Victor Stinner Date: Tue, 11 Oct 2011 20:35:52 +0000 (+0200) Subject: Fix a compiler warning in _locale X-Git-Tag: v3.3.0a1~1218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c5d3cbfb88cf732adcd6c659ce875912ee70ee3;p=python Fix a compiler warning in _locale --- diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 72450def3d..9bba1b39cf 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -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) {