updating more value manipulation code for the go wrapper
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-11-01 13:29:49 +09:00
parent 7d02ad249a
commit 2fb423df1a
6 changed files with 176 additions and 36 deletions

View File

@ -3661,10 +3661,10 @@ HAWK_EXPORT void hawk_rtx_freevalbcstr (
* hawk_int_t l;
* hawk_flt_t r;
* int n;
* n = hawk_rtx_valtonum (v, &l, &r);
* if (n <= -1) error ();
* else if (n == 0) print_int (l);
* else if (n >= 1) print_flt (r);
* n = hawk_rtx_valtonum(v, &l, &r);
* if (n <= -1) error();
* else if (n == 0) print_int(l);
* else if (n >= 1) print_flt(r);
* \endcode
*
* \return -1 on failure, 0 if converted to an integer, 1 if converted to

View File

@ -9845,7 +9845,6 @@ wp_mod_main:
else ch = 0;
break;
default:
hawk_rtx_refdownval(rtx, v);
hawk_rtx_seterrnum(rtx, HAWK_NULL, HAWK_EVALTOCHR);