updated the class-superclass compatibility check

This commit is contained in:
2025-09-18 01:09:04 +09:00
parent 8c54c12ea7
commit f8f063a68c
6 changed files with 12 additions and 17 deletions

View File

@ -693,7 +693,6 @@ static HAK_INLINE hak_oop_t make_bigint_with_ooi (hak_t* hak, hak_ooi_t i)
}
else
{
w = -i;
w = (i == HAK_TYPE_MIN(hak_ooi_t))? ((hak_oow_t)HAK_TYPE_MAX(hak_ooi_t) + 1): -i;
hw[0] = w /*& HAK_LBMASK(hak_oow_t,HAK_LIW_BITS)*/;
hw[1] = w >> HAK_LIW_BITS;
@ -4528,7 +4527,7 @@ hak_oop_t hak_strtoint (hak_t* hak, const hak_ooch_t* str, hak_oow_t len, int ra
if (outlen > HAK_COUNTOF(hw))
{
hwp = (hak_liw_t*)hak_allocmem(hak, outlen * HAK_SIZEOF(hak_liw_t));
if (!hwp) return HAK_NULL;
if (HAK_UNLIKELY(!hwp)) return HAK_NULL;
}
else
{