// Check if the block index is still within the allowed range, i.e. less
// than 2^N, where N is the number of bits in NodeId for the block index.
// BitsPerIndex is the number of bits per node index.
- assert((Blocks.size() < (1 << (8*sizeof(NodeId)-BitsPerIndex))) &&
+ assert((Blocks.size() < (1U << (8*sizeof(NodeId)-BitsPerIndex))) &&
"Out of bits for block index");
ActiveEnd = P;
}
// The input position P does not have to point to a non-delimiter.
unsigned SS = Stack.size();
bool IsDelim;
- assert(P >= 0 && P < SS);
+ assert(P < SS);
do {
P++;
IsDelim = isDelimiter(Stack[P-1]);