fixed the buggy qse_awk_rtx_isnilval()

This commit is contained in:
hyung-hwan 2020-01-19 10:02:35 +00:00
parent 351736b43c
commit bf5280e14e

View File

@ -49,7 +49,8 @@ qse_awk_val_t* qse_get_awk_nil_val (void)
int qse_awk_rtx_isnilval (qse_awk_rtx_t* rtx, qse_awk_val_t* val)
{
return val->v_type == QSE_AWK_VAL_NIL;
return val == (qse_awk_val_t*)&awk_nil || (QSE_AWK_VTR_IS_POINTER(val) && val->v_type == QSE_AWK_VAL_NIL);
}
qse_awk_val_t* qse_awk_rtx_makenilval (qse_awk_rtx_t* rtx)