On 09/05/16 19:56, Aharon Robbins
wrote:
[ Resent with correct bug address. ]
Hi.
I have fixed the problem. Patch below.
Thanks !
I have no clue why this only manifests in 4.1.0 forward.
May I add your test program and a few lines from the data file to
the test suite?
Sure !
What was the problem finally? From the comment I understand that the
index became an integer causing (I guess) some kind of wrong table
in a hash table or something?
Andres
Thanks,
Arnold
---------------------------------
diff --git a/str_array.c b/str_array.c
index 2ffa5df..c122ab9 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;
--
Andres Legarra
+33 561285182
INRA, UMR1388 GenPhySE
CS 52627
31326 Castanet Tolosan, France