about summary refs log tree commit diff
path: root/editor/ppmdither.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor/ppmdither.c')
-rw-r--r--editor/ppmdither.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/ppmdither.c b/editor/ppmdither.c
index 3b8d121b..09ed1187 100644
--- a/editor/ppmdither.c
+++ b/editor/ppmdither.c
@@ -20,7 +20,7 @@
    We need 2*dith_power bits in an unsigned int.  We also reserve
    one bit to give headroom to do calculations with these numbers.
 */
-#define MAX_DITH_POWER ((sizeof(unsigned int)*8 - 1) / 2)
+#define MAX_DITH_POWER (((unsigned)sizeof(unsigned int)*8 - 1) / 2)
 
 
 struct colorResolution {