Browse code

core: snexpr - assign the lv to evaluated variable with number value

Daniel-Constantin Mierla authored on 07/10/2022 11:50:42
Showing 1 changed files
... ...
@@ -781,7 +781,7 @@ static struct snexpr *snexpr_eval(struct snexpr *e)
781 781
 				if(e->param.var.vref->evflags & SNEXPR_TSTRING) {
782 782
 					lv = snexpr_convert_stz(e->param.var.vref->v.sval, SNE_OP_CONSTSTZ);
783 783
 				} else {
784
-					snexpr_convert_num(e->param.var.vref->v.nval, SNE_OP_CONSTNUM);
784
+					lv = snexpr_convert_num(e->param.var.vref->v.nval, SNE_OP_CONSTNUM);
785 785
 				}
786 786
 			} else {
787 787
 				lv = _snexternval_cbf(e->param.var.vref->name);