Changeset 7158 for lang/cplusplus

Show
Ignore:
Timestamp:
02/26/08 14:00:27 (6 years ago)
Author:
kazuho
Message:

fix overrun

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/range_coder/range_coder.hpp

    r7156 r7158  
    124124      mask = (_mm_movemask_epi8(b) << 16) | _mm_movemask_epi8(a); 
    125125      if (mask) { 
    126         break; 
     126        return i + (__builtin_ctz(mask) >> 1) - 1; 
    127127      } 
    128128    } 
    129     return i + (__builtin_ctz(mask) >> 1) - 1; 
     129    return 255; 
    130130  } 
    131131};