diff options
-rw-r--r-- | subsurface-core/macos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subsurface-core/macos.c b/subsurface-core/macos.c index 8ca2c1c6f..70cfc08d4 100644 --- a/subsurface-core/macos.c +++ b/subsurface-core/macos.c @@ -119,7 +119,7 @@ int enumerate_devices(device_callback_t callback, void *userdata, int dc_type) if (fnmatch(patterns[i], ep->d_name, 0) == 0) { char filename[1024]; int n = snprintf(filename, sizeof(filename), "%s/%s", dirname, ep->d_name); - if (n >= sizeof(filename)) { + if (n >= (int)sizeof(filename)) { closedir(dp); return -1; } @@ -145,7 +145,7 @@ int enumerate_devices(device_callback_t callback, void *userdata, int dc_type) if (fnmatch("UEMISSDA", ep->d_name, 0) == 0) { char filename[1024]; int n = snprintf(filename, sizeof(filename), "%s/%s", dirname, ep->d_name); - if (n >= sizeof(filename)) { + if (n >= (int)sizeof(filename)) { closedir(dp); return -1; } |