From 42cf09f0da80b43b03fcd73a61c7d90d5ab2106b Mon Sep 17 00:00:00 2001
From: Arne Goedeke <el@laramies.com>
Date: Sun, 21 Oct 2012 11:00:58 +0200
Subject: [PATCH] mapping_iterator: _sizeof() always returned undefined

---
 src/iterators.cmod | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/iterators.cmod b/src/iterators.cmod
index 7dc7f5c325..63edb77e9c 100644
--- a/src/iterators.cmod
+++ b/src/iterators.cmod
@@ -319,8 +319,8 @@ PIKECLASS mapping_iterator
   {
     if (THIS->md) {
       push_int(THIS->md->size);
-    }
-    push_undefined();
+    } else
+      push_undefined();
   }
 
 #ifdef PIKE_MAPPING_KEYPAIR_LOOP
-- 
GitLab