mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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) ^~
This commit is contained in:
parent
059dc76ae1
commit
a16d6398d7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user