summaryrefslogtreecommitdiff
path: root/sortlib.cuh
diff options
context:
space:
mode:
Diffstat (limited to 'sortlib.cuh')
-rw-r--r--sortlib.cuh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sortlib.cuh b/sortlib.cuh
index d9e91a2..d2e148a 100644
--- a/sortlib.cuh
+++ b/sortlib.cuh
@@ -79,7 +79,7 @@ public:
}*/
// son = get_son_from_step(son, (*last_known_point > val));
- auto branch_selector = ((*last_known_point - val) >> MOVE_OFFSET);
+ auto branch_selector = (int)(*last_known_point < val);
// printf("tmp: %llu\n", tmp);
// printf("%llu %llu ", val, *last_known_point);
son = son * 2 + branch_selector;