Fixed a bug that caused an out of range error when a key in a

mapping could not be found.
This commit is contained in:
Ferdinand Majerech 2012-01-22 17:03:32 +01:00
parent 04af9bf240
commit d46a3ac5c2

View file

@ -1323,7 +1323,7 @@ struct Node
}
//Get index of pair with key (or value, if value is true) matching index.
size_t findPair(T, bool value = false)(const ref T index) const
sizediff_t findPair(T, bool value = false)(const ref T index) const
{
const pairs = value_.get!(const Pair[])();
const(Node)* node;