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

UnicodeSet? bug fix and compile warning clean-up.

Location:
icGREP/icgrep-devel/icgrep/cc
Files:
2 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}
  • icGREP/icgrep-devel/icgrep/cc/cc_compiler.h

    r4815 r5037  
    4646
    4747private:
    48     pablo::Var * getBasisVar(const int n) const;
     48    pablo::Var * getBasisVar(const unsigned n) const;
    4949    template<typename PabloBlockOrBuilder>
    5050    pablo::PabloAST * bit_pattern_expr(const unsigned pattern, unsigned selected_bits, PabloBlockOrBuilder & pb);
Note: See TracChangeset for help on using the changeset viewer.