fix for bitvector
authorYanhuaSun <sun51@illinois.edu>
Fri, 11 Oct 2013 16:01:18 +0000 (11:01 -0500)
committerYanhuaSun <sun51@illinois.edu>
Fri, 11 Oct 2013 16:01:18 +0000 (11:01 -0500)
src/util/ckbitvector.C

index d81f7447e5d4cb7fbba80f363e4296659a6aca31..20669dd6d77903ee39806ec21b30011493b8ee2b 100644 (file)
@@ -431,7 +431,7 @@ int CkBitVector::Compare(const CkBitVector &b) const
         length = chunks(usedBits);
     }
 
-    for(i=length; i>=0; i--)
+    for(i=0; i<length; i++)
     {
         if(data[i] > b.data[i])
         {