17 lines
485 B
Plaintext
17 lines
485 B
Plaintext
$OpenBSD: patch-pnm_pnmarith_c,v 1.1 2001/10/03 03:09:31 brad Exp $
|
|
--- pnm/pnmarith.c.orig Wed Aug 22 20:32:46 2001
|
|
+++ pnm/pnmarith.c Wed Aug 22 20:33:40 2001
|
|
@@ -147,9 +147,9 @@ main( argc, argv )
|
|
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':
|