mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-30 21:04:13 +02:00
gio: Fix various implicit conversions from size_t to smaller types
Basically various trivial instances of the following MSVC compiler warning: ``` ../gio/gio-tool-set.c(50): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data ``` Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
@@ -160,8 +160,8 @@ g_win32_fs_monitor_callback (DWORD error,
|
||||
|
||||
if (monitor->isfile)
|
||||
{
|
||||
gint long_filename_length = wcslen (monitor->wfilename_long);
|
||||
gint short_filename_length = wcslen (monitor->wfilename_short);
|
||||
size_t long_filename_length = wcslen (monitor->wfilename_long);
|
||||
size_t short_filename_length = wcslen (monitor->wfilename_short);
|
||||
enum GWin32FileMonitorFileAlias alias_state;
|
||||
|
||||
/* If monitoring a file, check that the changed file
|
||||
|
@@ -318,7 +318,7 @@ static const char *
|
||||
match_prefix (const char *path,
|
||||
const char *prefix)
|
||||
{
|
||||
int prefix_len;
|
||||
size_t prefix_len;
|
||||
|
||||
prefix_len = strlen (prefix);
|
||||
if (strncmp (path, prefix, prefix_len) != 0)
|
||||
|
Reference in New Issue
Block a user