[Avida-SVN] r2485 - development/source/script
brysonda at myxo.css.msu.edu
brysonda at myxo.css.msu.edu
Fri Mar 21 13:02:33 PDT 2008
Author: brysonda
Date: 2008-03-21 16:02:33 -0400 (Fri, 21 Mar 2008)
New Revision: 2485
Modified:
development/source/script/cDirectInterpretASTVisitor.cc
Log:
AS:
Fix function calls. Argument processing was using the wrong symbol table to lookup variable types.
Modified: development/source/script/cDirectInterpretASTVisitor.cc
===================================================================
--- development/source/script/cDirectInterpretASTVisitor.cc 2008-03-21 19:19:11 UTC (rev 2484)
+++ development/source/script/cDirectInterpretASTVisitor.cc 2008-03-21 20:02:33 UTC (rev 2485)
@@ -1187,7 +1187,7 @@
int var_id = arg_def->GetVarID();
- switch (m_cur_symtbl->GetVariableType(var_id).type) {
+ switch (func_symtbl->GetVariableType(var_id).type) {
case TYPE(ARRAY): m_call_stack[sp + var_id].value.as_array = asArray(m_rtype, m_rvalue, node); break;
case TYPE(BOOL): m_call_stack[sp + var_id].value.as_bool = asBool(m_rtype, m_rvalue, node); break;
case TYPE(CHAR): m_call_stack[sp + var_id].value.as_char = asChar(m_rtype, m_rvalue, node); break;
More information about the Avida-cvs
mailing list