diff options
Diffstat (limited to 'str_array.c')
-rw-r--r-- | str_array.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/str_array.c b/str_array.c index 2ffa5df9..c122ab94 100644 --- a/str_array.c +++ b/str_array.c @@ -187,6 +187,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; |