changeset 15111:678f6aeb6754

silence gcc warning: pullup.c:681: warning: suggest parentheses around + or - inside shift pullup.c:682: warning: suggest parentheses around + or - inside shift approved by Rich
author rathann
date Sun, 10 Apr 2005 20:01:54 +0000
parents 8189181ce694
children 4433dd310657
files libmpcodecs/pullup.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/pullup.c	Sun Apr 10 18:14:45 2005 +0000
+++ b/libmpcodecs/pullup.c	Sun Apr 10 20:01:54 2005 +0000
@@ -678,8 +678,8 @@
 	if (c->nbuffers < 10) c->nbuffers = 10;
 	c->buffers = calloc(c->nbuffers, sizeof (struct pullup_buffer));
 
-	c->metric_w = (c->w[mp] - (c->junk_left + c->junk_right << 3)) >> 3;
-	c->metric_h = (c->h[mp] - (c->junk_top + c->junk_bottom << 1)) >> 3;
+	c->metric_w = (c->w[mp] - ((c->junk_left + c->junk_right) << 3)) >> 3;
+	c->metric_h = (c->h[mp] - ((c->junk_top + c->junk_bottom) << 1)) >> 3;
 	c->metric_offset = c->junk_left*c->bpp[mp] + (c->junk_top<<1)*c->stride[mp];
 	c->metric_len = c->metric_w * c->metric_h;