New rank/select data structure based on sadakane's code
[SXSI/XMLTree.git] / libcds / src / static_sequence / wt_node_leaf.cpp
index 02bc9cc..f712f85 100644 (file)
@@ -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++;