1--- rdb.c	Thu Mar 25 17:38:24 2010
2+++ rgb.bak	Fri Mar 19 17:50:47 2010
3@@ -115,7 +115,7 @@ rdb_add_index(rdb_t *rdb, uint32_t index
4
5     /* shift the window forward by delta bits*/
6     v128_left_shift(&rdb->bitmask, delta);
7-    v128_set_bit(&rdb->bitmask, rdb_bits_in_bitmask-delta);
8+    v128_set_bit(&rdb->bitmask, rdb_bits_in_bitmask - 1);
9     rdb->window_start += delta;
10
11   }
12