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

@ -1211,13 +1211,13 @@ static int fmt_outv (hak_t* hak, hak_fmtout_t* fmtout, va_list ap)
if (fb.out.ptr == fb.out.sbuf)
{
fb.out.ptr = (hak_bch_t*)HAK_MMGR_ALLOC(fmtout->mmgr, HAK_SIZEOF(hak_bch_t) * (newcapa + 1));
if (!fb.out.ptr) goto oops;
if (HAK_UNLIKELY(!fb.out.ptr)) goto oops;
}
else
{
hak_bch_t* tmpptr;
tmpptr = (hak_bch_t*)HAK_MMGR_REALLOC(fmtout->mmgr, fb.out.ptr, HAK_SIZEOF(hak_bch_t) * (newcapa + 1));
if (!tmpptr) goto oops;
if (HAK_UNLIKELY(!tmpptr)) goto oops;
fb.out.ptr = tmpptr;
}
fb.out.capa = newcapa;