From 091b8b6c35c18dbc2a6740cbf295b8d816914e43 Mon Sep 17 00:00:00 2001 From: Victor Grishchenko Date: Thu, 3 Jun 2010 17:12:50 +0200 Subject: [PATCH] twist bug --- ext/seq_picker.cpp | 6 +++++- tests/SConscript | 28 ++++++++++++++-------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/ext/seq_picker.cpp b/ext/seq_picker.cpp index 48f1fe3..8168127 100644 --- a/ext/seq_picker.cpp +++ b/ext/seq_picker.cpp @@ -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); diff --git a/tests/SConscript b/tests/SConscript index 2affccc..560f8a2 100644 --- a/tests/SConscript +++ b/tests/SConscript @@ -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', -- 2.20.1