Changeset 2328 for trunk


Ignore:
Timestamp:
Aug 25, 2012, 12:24:23 PM (6 years ago)
Author:
cameron
Message:

Clear some -Wall warnings.

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock.hpp

    r2327 r2328  
    7373        u.bitblock = v;
    7474        uint32_t so_far = 0;
    75         for (int i = 0; i < sizeof(BitBlock)/sizeof(scanword_t); i++) {
     75        for (unsigned int i = 0; i < sizeof(BitBlock)/sizeof(scanword_t); i++) {
    7676                if (u.elems[i] != 0) return so_far + scan_forward_zeroes(u.elems[i]);
    7777                so_far += 8 * sizeof(scanword_t);
     
    8989        u.bitblock = v;
    9090        uint32_t so_far = 0;
    91         for (int i = sizeof(BitBlock)/sizeof(scanword_t) - 1; i >= 0; i--) {
     91        for (unsigned int i = sizeof(BitBlock)/sizeof(scanword_t) - 1; i >= 0; i--) {
    9292                if (u.elems[i] != 0) return so_far + scan_backward_zeroes(u.elems[i]);
    9393                so_far += 8 * sizeof(scanword_t);
  • trunk/lib/bitblock128.hpp

    r2275 r2328  
    101101IDISA_ALWAYS_INLINE bitblock128_t convert(uint64_t s)
    102102{
    103         ubitblock b = {b._128 = simd128<128>::constant<0>()}; // = {0};
     103        ubitblock b;
     104        b._128 = simd128<128>::constant<0>();
    104105        b._64[0] = s;
    105106        return b._128;
Note: See TracChangeset for help on using the changeset viewer.