Show
Ignore:
Timestamp:
07/21/06 12:46:39 (8 years ago)
Author:
socrates
Message:

Got rid of multiple Windows compile-time warnings (VS7.0).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vic/trunk/render/color-ed.cpp

    r3746 r3770  
    268268 * 'omask' is the parrallel set of under/overflow check bits. 
    269269 */ 
    270 #define YERRMASK ((1 << 8 - ED_YBITS) - 1) 
     270#define YERRMASK ((1 << (8 - ED_YBITS)) - 1)  
    271271#define DIFFUSION_SETUP \ 
    272272        register const u_int* lut = cm_.lut(); \ 
     
    343343        t |= (e << 14) & (0xf << 18); \ 
    344344        t >>= 11; \ 
    345         t = lut[t & (1 << 7+7+ED_YBITS) - 1]; \ 
     345        t = lut[t & (1 << (7+7+ED_YBITS)) - 1]; \ 
    346346        /* y error */ \ 
    347347        e &= YERRMASK;  \