simplified hawk::call().
fixed a bug in copying a value for a reference upon returning from a function in hawk_rtx_evalcall(). it was unable to handle the case where a reference variable is not updated in the called function
This commit is contained in:
@ -2465,7 +2465,7 @@ hawk_val_t* hawk_rtx_getrefval (hawk_rtx_t* rtx, hawk_val_ref_t* ref)
|
||||
|
||||
int hawk_rtx_setrefval (hawk_rtx_t* rtx, hawk_val_ref_t* ref, hawk_val_t* val)
|
||||
{
|
||||
hawk_val_type_t vtype = HAWK_RTX_GETVALTYPE (rtx, val);
|
||||
hawk_val_type_t vtype = HAWK_RTX_GETVALTYPE(rtx, val);
|
||||
|
||||
if (vtype == HAWK_VAL_REX || vtype == HAWK_VAL_REF)
|
||||
{
|
||||
|
Reference in New Issue
Block a user