aboutsummaryrefslogtreecommitdiffstats
path: root/str_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'str_array.c')
-rw-r--r--str_array.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/str_array.c b/str_array.c
index db24980a..9514d515 100644
--- a/str_array.c
+++ b/str_array.c
@@ -168,6 +168,15 @@ str_lookup(NODE *symbol, NODE *subs)
subs = dupnode(subs);
}
+ /*
+ * Repeat after me: "Array indices are always strings."
+ * "Array indices are always strings."
+ * "Array indices are always strings."
+ * "Array indices are always strings."
+ * ....
+ */
+ subs->flags &= ~MAYBE_NUM;
+
getbucket(b);
b->ahnext = symbol->buckets[hash1];
symbol->buckets[hash1] = b;