Fix signedness warning in glib/gslice.c

glib/gslice.c: In function 'slice_config_init':
glib/gslice.c:394:16: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int'
   else if (len >= G_N_ELEMENTS (wvalue))
                ^~
This commit is contained in:
Emmanuel Fleury 2021-05-14 11:40:02 +02:00
parent 574842a12e
commit cd04e0b7a4

View File

@ -380,7 +380,7 @@ slice_config_init (SliceConfig *config)
{
wchar_t wvalue[128]; /* at least big enough for `always-malloc,debug-blocks` */
int len;
gsize len;
len = GetEnvironmentVariableW (L"G_SLICE", wvalue, G_N_ELEMENTS (wvalue));