From bfaed88493de0a3ebd7f2619cb11291cd09252b1 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Tue, 18 Mar 2014 09:30:51 +0100 Subject: [PATCH] fixed but in iterator --- src/valueiterator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/valueiterator.cpp b/src/valueiterator.cpp index 08520d5d..3be8104e 100644 --- a/src/valueiterator.cpp +++ b/src/valueiterator.cpp @@ -116,7 +116,7 @@ ValueIterator &ValueIterator::read() if (type == HASH_KEY_NON_EXISTANT) return invalidate(); // numeric keys are the easiest ones - if (type == HASH_KEY_NON_EXISTANT) key = (int64_t)num_key; + if (type == HASH_KEY_IS_LONG) key = (int64_t)num_key; else key = string_key; #endif