[glib: 5/6] Fix signedness warning in glib/gslice.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/6] Fix signedness warning in glib/gslice.c
- Date: Wed, 13 Oct 2021 08:49:07 +0000 (UTC)
commit cd04e0b7a4605ed3b2e8a2672dd4e237254d5512
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Fri May 14 11:40:02 2021 +0200
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))
^~
glib/gslice.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gslice.c b/glib/gslice.c
index 690d21e07..190b20634 100644
--- a/glib/gslice.c
+++ b/glib/gslice.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]