Merge pull request #48 from stellarscience/patch-1

MSVC "assignment within conditional" warning fix
This commit is contained in:
Ion Gaztañaga
2020-10-19 13:32:22 +02:00
committed by GitHub

View File

@@ -1012,7 +1012,8 @@ class bstree_algorithms : public bstree_algorithms_base<NodeTraits>
while(x){ while(x){
++depth; ++depth;
y = x; y = x;
x = (left_child = comp(key, x)) ? left_child = comp(key, x);
x = left_child ?
NodeTraits::get_left(x) : (prev = y, NodeTraits::get_right(x)); NodeTraits::get_left(x) : (prev = y, NodeTraits::get_right(x));
} }