about summary refs log tree commit diff
path: root/editor/ppmbrighten.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor/ppmbrighten.c')
-rw-r--r--editor/ppmbrighten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/ppmbrighten.c b/editor/ppmbrighten.c
index 9bcf7bb5..49f05c3a 100644
--- a/editor/ppmbrighten.c
+++ b/editor/ppmbrighten.c
@@ -102,7 +102,7 @@ parseCommandLine(int argc, char ** argv,
 static __inline__ unsigned int
 mod(int const dividend, unsigned int const divisor) {
 
-    int remainder = dividend % divisor;
+    int remainder = dividend % (int)divisor;
 
     if (remainder < 0)
         return divisor + remainder;