From: Dana Jansens Date: Wed, 12 Feb 2003 01:22:51 +0000 (+0000) Subject: add mising ()s X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=6b1381d69daf7c325d4a8165a8b0006d0dce85a5;p=chaz%2Fopenbox add mising ()s --- diff --git a/otk/rendercolor.cc b/otk/rendercolor.cc index 31823341..7a0b5fcc 100644 --- a/otk/rendercolor.cc +++ b/otk/rendercolor.cc @@ -61,9 +61,9 @@ void RenderColor::create() const ScreenInfo *info = display->screenInfo(_screen); XColor xcol; // convert from 0-0xff to 0-0xffff - xcol.red = _red << 8 | _red; - xcol.green = _green << 8 | _green; - xcol.blue = _blue << 8 | _blue; + xcol.red = (_red << 8) | _red; + xcol.green = (_green << 8) | _green; + xcol.blue = (_blue << 8) | _blue; xcol.pixel = 0; if (! XAllocColor(**display, info->colormap(), &xcol)) {