From 509b664a29af0ed09f62150813cdfb737116c309 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 23 Mar 2016 17:25:11 -0700 Subject: [PATCH] Another small signed / unsigned warning fix This is in the Mac support file that wasn't compiled on Linux when I tried to finish the cleanup. Now this compiles without warnings on Mac and iOS as well. Signed-off-by: Dirk Hohndel --- subsurface-core/macos.c | 4 ++-- 1 file 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; }