Ignore:
Timestamp:
May 10, 2016, 12:12:41 AM (3 years ago)
Author:
nmedfort
Message:

UnicodeSet? bug fix and compile warning clean-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.cpp

    r5035 r5037  
    218218      Handling this as a special case avoids an overflow issue with n+1 requiring more than N bits.
    219219    */
    220     if ((n + 1) == (1 << N)) {
     220    if ((n + 1) == (1UL << N)) {
    221221        return pb.createOnes(); //True.
    222222    }
     
    237237}
    238238
    239 inline Var * CC_Compiler::getBasisVar(const int i) const {
    240     assert (i >= 0 && i < mEncoding.getBits());
     239inline Var * CC_Compiler::getBasisVar(const unsigned i) const {
     240    assert (i < mEncoding.getBits());
    241241    return mBasisBit[mEncoding.getBits() - i - 1];
    242242}
Note: See TracChangeset for help on using the changeset viewer.