commit | 2c5d3cbfb88cf732adcd6c659ce875912ee70ee3 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Tue Oct 11 22:35:52 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Tue Oct 11 22:35:52 2011 +0200 |
tree | 0a604738ef43801160e3e418ea5698eefc1869be | |
parent | 3f528f0c1b79f32b1c00348f53f4b5b2007f16c5 [diff] [blame] |
Fix a compiler warning in _locale
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 72450de..9bba1b3 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c
@@ -292,7 +292,7 @@ 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) {