This commit is contained in:
Valk Richard Li 2020-10-05 02:48:28 -07:00 committed by GitHub
parent d4b06ac78a
commit b3cd21fae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -1535,7 +1535,7 @@ int nasal_virtual_machine::mem_change(int memory_address,int value_address)
else
{
if(error_info_output_switch)
std::cout<<">> [vm] mem_store:unexpected memory \'"<<memory_address<<"\'."<<std::endl;
std::cout<<">> [vm] mem_change:unexpected memory \'"<<memory_address<<"\'."<<std::endl;
return 0;
}
return 1;
@ -1549,7 +1549,7 @@ int nasal_virtual_machine::mem_init(int memory_address,int value_address)
else
{
if(error_info_output_switch)
std::cout<<">> [vm] mem_store:unexpected memory \'"<<memory_address<<"\'."<<std::endl;
std::cout<<">> [vm] mem_init:unexpected memory \'"<<memory_address<<"\'."<<std::endl;
return 0;
}
return 1;

View File

@ -1172,7 +1172,11 @@ int nasal_runtime::call_scalar_mem(nasal_ast& node,int local_scope_addr)
}
mem_address=tmp_mem_addr;
if(mem_address<0)
{
++error;
std::cout<<">> [runtime] call_scalar_mem: cannot find correct memory space."<<std::endl;
break;
}
}
return mem_address;
}