git: 9front

Download patch

ref: a38b77f3f7ee441a4936f948d6eedd25fc2a1b23
parent: bb05e41f2eb2acab1f659da349452a040c50a59a
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Sep 7 10:50:17 EDT 2013

libaml: use FP->env to access method arguments instead of FP->arg in evalosi()

--- a/sys/src/libaml/aml.c
+++ b/sys/src/libaml/aml.c
@@ -2062,7 +2062,7 @@
 	char *s;
 	int i;
 
-	s = deref(FP->arg[0]);
+	s = FP->env->arg[0];
 	if(s == nil || TAG(s) != 's')
 		return nil;
 	for(i = 0; i < nelem(w); i++)
--