ref: 7d2dc676c5bf542cdedee28ec75278bd3b5871af
parent: caa2cd99e469f598d19a03f2ba4d3c23c6e9d6f5
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jan 24 08:17:07 EST 2016
Fix an error in context strings. Print the right argument string.
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -90,7 +90,7 @@
t = strdup("?");
if (exprop(args[i]) == Ovar)
- p += bprintf(p, end - p, "%s%s:%s", sep, namestr(args[0]->expr.args[0]), t);
+ p += bprintf(p, end - p, "%s%s:%s", sep, namestr(args[i]->expr.args[i]), t);
else
p += bprintf(p, end - p, "%s<e%zd>:%s", sep, i, t);
sep = ", ";