From 451154ce4c26618042507aaf3ded4a50c6e0b934 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Tue, 12 Jul 2011 09:14:28 -0700 Subject: [PATCH] unnecessary parens --- src/Image.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Image.cc b/src/Image.cc index 5c27bc4..c5bf17c 100644 --- a/src/Image.cc +++ b/src/Image.cc @@ -476,14 +476,14 @@ Image::loadGIFFromBuffer(uint8_t *buf, unsigned len) { for (int x = 0; x < width; ++x) { if ((y < img->Top) || (y >= bottom) || (x < img->Left) || (x >= right)) { *dst_data = ((bgColor == alphaColor) ? 0 : 255) << 24 - | (colormap->Colors[bgColor].Red) << 16 - | (colormap->Colors[bgColor].Green) << 8 - | (colormap->Colors[bgColor].Blue); + | colormap->Colors[bgColor].Red << 16 + | colormap->Colors[bgColor].Green << 8 + | colormap->Colors[bgColor].Blue; } else { *dst_data = ((*src_data == alphaColor) ? 0 : 255) << 24 - | (colormap->Colors[*src_data].Red) << 16 - | (colormap->Colors[*src_data].Green) << 8 - | (colormap->Colors[*src_data].Blue); + | colormap->Colors[*src_data].Red << 16 + | colormap->Colors[*src_data].Green << 8 + | colormap->Colors[*src_data].Blue; } dst_data++;