aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConstants.h
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@abhibeckert.com>2016-04-03 10:06:33 +1000
committerAbhi Beckert <abhi@abhibeckert.com>2016-04-03 10:06:41 +1000
commit6672e0d55810a7447fd06ef1113ad88473ba7538 (patch)
tree841c95ecacd2f1d7b34211e95490b130985e2535 /Source/SPConstants.h
parent128add6d3e731a83d813ad69ee1e773776bb8e69 (diff)
downloadsequelpro-6672e0d55810a7447fd06ef1113ad88473ba7538.tar.gz
sequelpro-6672e0d55810a7447fd06ef1113ad88473ba7538.tar.bz2
sequelpro-6672e0d55810a7447fd06ef1113ad88473ba7538.zip
fix various compile warnings
Diffstat (limited to 'Source/SPConstants.h')
-rw-r--r--Source/SPConstants.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index db51b462..26fdc1ab 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -684,7 +684,7 @@ typedef NSUInteger NSCellHitResult;
#define SPLog(fmt, ...) NSLog((@"%s:%d: " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
// See http://stackoverflow.com/questions/4415524
-#define COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
+#define COUNT_OF(x) (NSInteger)((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
// This definition is mostly for legibility
#ifndef ESUCCESS