Show
Ignore:
Timestamp:
07/24/08 20:04:07 (6 months ago)
Author:
tom
Message:

Add parentheses to avoid compiler warnings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/mapnik/color.hpp

    r690 r711  
    4141 
    4242        Color(int red,int green,int blue,int alpha=0xff) 
    43             : abgr_((alpha&0xff) << 24 |  
    44                     (blue&0xff) << 16  |  
    45                     (green&0xff) << 8  |  
    46                     red&0xff) {} 
     43            : abgr_(((alpha&0xff) << 24) |  
     44                    ((blue&0xff) << 16)  |  
     45                    ((green&0xff) << 8)  |  
     46                     (red&0xff)) {} 
    4747         
    4848        explicit Color(int rgba) 
     
    8989        inline void set_alpha(unsigned int a) 
    9090        { 
    91             abgr_ = (abgr_ & 0x00ffffff | (a&0xff) << 24); 
     91            abgr_ = (abgr_ & 0x00ffffff) | ((a&0xff) << 24); 
    9292        } 
    9393