X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=libcds%2Fsrc%2Fstatic_sequence%2Fwt_node_leaf.cpp;h=f712f85041fc1ab1db25edab2019316554a2e953;hb=bbeeb03980ddf51c0f32fd3c42321dc9ef708c27;hp=02bc9cc313ab04027ce76f1212a49d2572d0992f;hpb=6a9117a97674437c9fe00b099c40ccb61d45d704;p=SXSI%2FXMLTree.git diff --git a/libcds/src/static_sequence/wt_node_leaf.cpp b/libcds/src/static_sequence/wt_node_leaf.cpp index 02bc9cc..f712f85 100644 --- a/libcds/src/static_sequence/wt_node_leaf.cpp +++ b/libcds/src/static_sequence/wt_node_leaf.cpp @@ -46,7 +46,7 @@ uint wt_node_leaf::rankLessThan(uint &symbol, uint pos, uint l, wt_coder * c) { uint wt_node_leaf::rankLessThan(uint &symbol, uint pos) { // std::cout <<"this-symbol: " << (uchar)this->symbol << ", symbol = " << (uchar)symbol << ", pos = " << pos << std::endl; - if (pos == -1) + if (pos == (uint)-1) return -1; symbol = this->symbol; pos++;