Correctly set max for region json extractor
This commit is contained in:
parent
205b43b682
commit
bd12deed4e
@ -27,8 +27,8 @@ range<T>::range (const json::node &node) {
|
|||||||
min = UNLIMITED.min;
|
min = UNLIMITED.min;
|
||||||
max = UNLIMITED.max;
|
max = UNLIMITED.max;
|
||||||
} else {
|
} else {
|
||||||
min = node.to_array ()[0].to_number ();
|
min = node[0].to_number ();
|
||||||
max = node.to_array ()[0].to_number ();
|
max = node[1].to_number ();
|
||||||
}
|
}
|
||||||
|
|
||||||
sanity ();
|
sanity ();
|
||||||
|
Loading…
Reference in New Issue
Block a user