[glib: 2/5] Fix signedness error in glib/gspawn.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/5] Fix signedness error in glib/gspawn.c
- Date: Mon, 14 Sep 2020 08:30:53 +0000 (UTC)
commit d49586cfa3f06b456aee6cbd4d2cd357376d952f
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Thu Sep 10 18:10:06 2020 +0200
Fix signedness error in glib/gspawn.c
glib/gspawn.c:2252:16: error: comparison of integer expressions of
different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’}
2252 | if (argc + 2 > argv_buffer_len)
| ^
glib/gspawn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gspawn.c b/glib/gspawn.c
index 80ef669f8..c37ac7c84 100644
--- a/glib/gspawn.c
+++ b/glib/gspawn.c
@@ -2244,7 +2244,7 @@ script_execute (const gchar *file,
gchar **envp)
{
/* Count the arguments. */
- int argc = 0;
+ gsize argc = 0;
while (argv[argc])
++argc;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]