aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-23 17:25:11 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-23 17:26:46 -0700
commit509b664a29af0ed09f62150813cdfb737116c309 (patch)
tree8e747c7921d4330f69ed71ee597cfc0f9ea3fc03
parent788d65a527b8daf511ca70c33b14bf88cf1a37b0 (diff)
downloadsubsurface-509b664a29af0ed09f62150813cdfb737116c309.tar.gz
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 <dirk@hohndel.org>
-rw-r--r--subsurface-core/macos.c4
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;
}