fixed store_into_numeric_rcv_slot() which checked the return value of hak_inttooow() in a wrong way

This commit is contained in:
2025-09-16 18:13:12 +09:00
parent 3faca8ae98
commit 1c8115dbc9
6 changed files with 50 additions and 29 deletions

View File

@ -321,7 +321,7 @@ int hak_inttooow (hak_t* hak, hak_oop_t x, hak_oow_t* w)
if (v < 0)
{
*w = -v;
hak_seterrnum(hak, HAK_ERANGE);
hak_seterrbfmt(hak, HAK_ERANGE, "negative number - %O", x);
return -1; /* negative number negated - kind of an error */
}
else