aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h
index 330d9d369b..f240c534be 100644
--- a/common/util.h
+++ b/common/util.h
@@ -38,7 +38,7 @@
template<class T>
static inline void SWAP(T &a, T &b) { T tmp = a; a = b; b = tmp; }
-#define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0]))
+#define ARRAYSIZE(x) ((int)(sizeof(x) / sizeof(x[0])))
int RGBMatch(byte *palette, int r, int g, int b);
int Blend(int src, int dst, byte *palette);