We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e783f0 commit 3f05fcdCopy full SHA for 3f05fcd
lib/maple_tree.c
@@ -1088,14 +1088,16 @@ static int mas_ascend(struct ma_state *mas)
1088
return 0;
1089
}
1090
1091
- if (!mas->min)
+ min = 0;
1092
+ max = ULONG_MAX;
1093
+ if (!mas->offset) {
1094
+ min = mas->min;
1095
set_min = true;
1096
+ }
1097
1098
if (mas->max == ULONG_MAX)
1099
set_max = true;
1100
- min = 0;
- max = ULONG_MAX;
1101
do {
1102
p_enode = a_enode;
1103
a_type = mas_parent_type(mas, p_enode);
0 commit comments