summaryrefslogtreecommitdiff
path: root/src/valueiterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/valueiterator.cpp')
-rw-r--r--src/valueiterator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/valueiterator.cpp b/src/valueiterator.cpp
index 08520d5..3be8104 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