summaryrefslogtreecommitdiffstats
path: root/tableinitcmtemplate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tableinitcmtemplate.c')
-rw-r--r--tableinitcmtemplate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tableinitcmtemplate.c b/tableinitcmtemplate.c
index b8144ea..2d10ea5 100644
--- a/tableinitcmtemplate.c
+++ b/tableinitcmtemplate.c
@@ -48,7 +48,7 @@ rfbInitColourMapSingleTableOUT(char **table, rfbPixelFormat *in,
{
CARD32 i, r, g, b;
OUT_T *t;
- int nEntries = 1 << in->bitsPerPixel;
+ CARD32 nEntries = 1 << in->bitsPerPixel;
int shift = colourMap->is16?16:8;
if (*table) free(*table);