From d46a3ac5c20e798139c4ceea129d4f9239a82886 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Sun, 22 Jan 2012 17:03:32 +0100 Subject: [PATCH] Fixed a bug that caused an out of range error when a key in a mapping could not be found. --- dyaml/node.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyaml/node.d b/dyaml/node.d index 7c12ed9..649a497 100644 --- a/dyaml/node.d +++ b/dyaml/node.d @@ -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;