[glib: 5/8] Fix signedness warning in gio/win32/gwin32fsmonitorutils.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/8] Fix signedness warning in gio/win32/gwin32fsmonitorutils.c
- Date: Wed, 20 Oct 2021 15:30:51 +0000 (UTC)
commit a16d6398d7b67efe9711838eeddead19daaaaf1e
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Fri May 14 13:58:11 2021 +0200
Fix signedness warning in gio/win32/gwin32fsmonitorutils.c
gio/win32/gwin32fsmonitorutils.c: In function 'g_win32_fs_monitor_handle_event':
gio/win32/gwin32fsmonitorutils.c:107:11: warning: comparison of integer expressions of different
signedness: 'GFileMonitorEvent' {aka 'enum <anonymous>'} and 'int'
if (fme != -1)
^~
gio/win32/gwin32fsmonitorutils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/win32/gwin32fsmonitorutils.c b/gio/win32/gwin32fsmonitorutils.c
index b47124634..f2ab5472a 100644
--- a/gio/win32/gwin32fsmonitorutils.c
+++ b/gio/win32/gwin32fsmonitorutils.c
@@ -92,7 +92,7 @@ g_win32_fs_monitor_handle_event (GWin32FSMonitorPrivate *monitor,
monitor->pfni_prev->Action == FILE_ACTION_RENAMED_OLD_NAME)
{
/* don't bother sending events, was already sent (rename) */
- fme = -1;
+ fme = (GFileMonitorEvent) -1;
}
else
fme = G_FILE_MONITOR_EVENT_MOVED_IN;
@@ -104,7 +104,7 @@ g_win32_fs_monitor_handle_event (GWin32FSMonitorPrivate *monitor,
break;
}
- if (fme != -1)
+ if (fme != (GFileMonitorEvent) -1)
return g_file_monitor_source_handle_event (monitor->fms,
fme,
filename,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]