shithub: mc

Download patch

ref: 7d63bf43adec9c28434c4bf44cf22f75fbfa1587
parent: 80ec974fe1549bf956f40002a7254b5875f978b1
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jan 25 09:45:37 EST 2016

Fix typo

    ->args[0], not ->args[i]

--- 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[i]->expr.args[i]), t);
+			p += bprintf(p, end - p, "%s%s:%s", sep, namestr(args[i]->expr.args[0]), t);
 		else
 			p += bprintf(p, end - p, "%s<e%zd>:%s", sep, i, t);
 		sep = ", ";