shithub: mc

Download patch

ref: bf98d0b81d9ddc5d77dc7c345f9577e41ef7aced
parent: ed3f53a7de0be0705fb0637e94e731808e7cd09c
author: Ori Bernstein <[email protected]>
date: Wed Jun 27 21:32:17 EDT 2012

Allow Ovar as a top level operator.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -352,7 +352,7 @@
     if (!n->expr.nargs)
         return;
     args = n->expr.args;
-    if (exprop(args[0]) != Ovar)
+    if (args[0]->type != Nexpr || exprop(args[0]) != Ovar)
         return;
     name = args[0]->expr.args[0];
     st = getns(curstab(), name);