fixed copy backs so they work properly

NOTE: heap fails, working on a rewrite

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40186
This commit is contained in:
David Anderson
2006-11-12 02:24:45 +00:00
parent 6bef3c2c5a
commit 94dc5ca298
3 changed files with 7 additions and 3 deletions
+5 -2
View File
@@ -114,7 +114,10 @@ int CFunction::PushArray(cell_t *inarray, unsigned int cells, cell_t **phys_addr
if (inarray)
{
memcpy(info->phys_addr, inarray, sizeof(cell_t) * cells);
if (!(copyback & SMFUNC_ARRAY_NOINIT))
{
memcpy(info->phys_addr, inarray, sizeof(cell_t) * cells);
}
info->orig_addr = inarray;
} else {
info->orig_addr = info->phys_addr;
@@ -257,7 +260,7 @@ int CFunction::Execute(cell_t *result, IFunctionCopybackReader *reader)
}
}
_skipcopy:
base->HeapRelease(temp_info[numparams].local_addr);
base->HeapPop(temp_info[numparams].local_addr);
temp_info[numparams].marked = false;
}