Correctly set max for region json extractor

This commit is contained in:
Danny Robson 2011-10-29 21:44:30 +11:00
parent 205b43b682
commit bd12deed4e

View File

@ -27,8 +27,8 @@ range<T>::range (const json::node &node) {
min = UNLIMITED.min;
max = UNLIMITED.max;
} else {
min = node.to_array ()[0].to_number ();
max = node.to_array ()[0].to_number ();
min = node[0].to_number ();
max = node[1].to_number ();
}
sanity ();