ref: 0c8a7503f3d207bdfe8b8a5216fa88e6e2916b08
parent: d6a4111c2451b088137d18502cc4b7f8f860d6c5
author: Ori Bernstein <[email protected]>
date: Thu Aug 23 17:41:39 EDT 2012
Fix compilation. Not sure how that crept in.
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -673,7 +673,7 @@
args = n->expr.args;
for (i = 0; i < n->expr.nargs; i++)
if (args[i]->type == Nexpr)
- inferpat(st, args[i], bind, nbind);
+ inferpat(st, val, args[i], bind, nbind);
switch (exprop(n)) {
case Oucon:
uc = uconresolve(st, n);
@@ -1025,7 +1025,7 @@
case Nmatch:
bound = NULL;
nbound = 0;
- inferpat(st, n->match.pat, &bound, &nbound);
+ inferpat(st, n->match.pat, NULL, &bound, &nbound);
addbindings(st, n->match.block, bound, nbound);
infernode(st, n->match.block, ret, sawret);
break;