twist bug
authorVictor Grishchenko <victor.grishchenko@gmail.com>
Thu, 3 Jun 2010 15:12:50 +0000 (17:12 +0200)
committerVictor Grishchenko <victor.grishchenko@gmail.com>
Thu, 3 Jun 2010 15:12:50 +0000 (17:12 +0200)
ext/seq_picker.cpp
tests/SConscript

index 48f1fe3..8168127 100644 (file)
@@ -56,7 +56,11 @@ public:
             offer.twist(twist_);
             ack_hint_out_.twist(twist_);
         }
-        bin64_t hint = offer.find_filtered (ack_hint_out_,range_,binmap_t::FILLED);
+        bin64_t range_tw = bin64_t::ALL;
+        if (range_!=bin64_t::ALL)
+            range_tw = range_.twisted(twist_);
+        bin64_t hint = offer.find_filtered
+            (ack_hint_out_,range_tw,binmap_t::FILLED);
         if (twist_) {
             hint = hint.twisted(twist_);
             offer.twist(0);
index 2affccc..560f8a2 100644 (file)
@@ -45,22 +45,22 @@ env.Program(
     LIBS=libs,
     LIBPATH=libpath )
 
-env.Program( 
-    target='ledbattest',
-    source=['ledbattest.cpp'],
-    CPPPATH=cpppath,
-    LIBS=libs,
-    LIBPATH=libpath )
+#env.Program( 
+#    target='ledbattest',
+#    source=['ledbattest.cpp'],
+#    CPPPATH=cpppath,
+#    LIBS=libs,
+#    LIBPATH=libpath )
 
 
-if sys.platform != "win32":
-    # Arno: Needs getopt
-    env.Program( 
-        target='ledbattest2',
-        source=['ledbattest2.cpp'],
-        CPPPATH=cpppath,
-        LIBS=libs,
-        LIBPATH=libpath )
+#if sys.platform != "win32":
+#    # Arno: Needs getopt
+#    env.Program( 
+#        target='ledbattest2',
+#        source=['ledbattest2.cpp'],
+#        CPPPATH=cpppath,
+#        LIBS=libs,
+#        LIBPATH=libpath )
 
 env.Program( 
     target='freemap',