- if (def->type == PSI_T_NUMBER) {
- def->type = PSI_T_DOUBLE;
- def->ival.dval = psi_num_exp_get_double(def->data.num, NULL, scope->defs);
- psi_num_exp_free(&def->data.num);
+ if (val->type == PSI_T_NUMBER) {
+ val->type = PSI_T_DOUBLE;
+ val->ival.dval = psi_num_exp_get_double(val->data.num, NULL, scope->defs);
+ psi_num_exp_free(&val->data.num);