aboutsummaryrefslogtreecommitdiff
path: root/common/util.h
diff options
context:
space:
mode:
authorMax Horn2003-05-17 23:36:47 +0000
committerMax Horn2003-05-17 23:36:47 +0000
commita5607d3fa279988880ba7b17e7935fb26e3dbc45 (patch)
tree8e96837be32e1020f725b7be9e56e1e822a8c484 /common/util.h
parentc79d40e1e336f94cd65496b7428fcacb95392691 (diff)
downloadscummvm-rg350-a5607d3fa279988880ba7b17e7935fb26e3dbc45.tar.gz
scummvm-rg350-a5607d3fa279988880ba7b17e7935fb26e3dbc45.tar.bz2
scummvm-rg350-a5607d3fa279988880ba7b17e7935fb26e3dbc45.zip
make ARRAYSIZE 'return' an int
svn-id: r7618
Diffstat (limited to 'common/util.h')
-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);