1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/graphics/netpbm/files/patch-ap

16 lines
398 B
Plaintext
Raw Normal View History

--- pnm/pnmarith.c.orig Sun Aug 13 13:08:04 1995
+++ pnm/pnmarith.c Sat Oct 16 02:39:24 1999
@@ -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':