summaryrefslogtreecommitdiff
path: root/graphics/netpbm/files/patch-other::pnmarith.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/netpbm/files/patch-other::pnmarith.c')
-rw-r--r--graphics/netpbm/files/patch-other::pnmarith.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/netpbm/files/patch-other::pnmarith.c b/graphics/netpbm/files/patch-other::pnmarith.c
new file mode 100644
index 000000000000..924657f51e6a
--- /dev/null
+++ b/graphics/netpbm/files/patch-other::pnmarith.c
@@ -0,0 +1,15 @@
+--- other/pnmarith.c.orig Sun Aug 13 13:08:04 1995
++++ other/pnmarith.c Tue Jun 18 00:00:00 2002
+@@ -147,9 +147,9 @@
+ break;
+
+ case '*':
+- r1 = r1 * r2 / maxval3;
+- g1 = g1 * g2 / maxval3;
+- b1 = b1 * b2 / maxval3;
++ r1 = (unsigned) r1 * r2 / maxval3;
++ g1 = (unsigned) g1 * g2 / maxval3;
++ b1 = (unsigned) b1 * b2 / maxval3;
+ break;
+
+ case 'D':