fixed a segfault bug in index()/rindex() function handler which treated a byte character as a byte string.

enhanced code to handle BOB better
This commit is contained in:
2025-07-10 23:12:47 +09:00
parent 45a22eb5a4
commit 955210800e
13 changed files with 296 additions and 32 deletions

View File

@ -561,6 +561,7 @@ static hawk_mod_int_tab_t inttab[] =
/* the names follow the val_type_name table in val.c */
{ HAWK_T("VAL_ARRAY"), { HAWK_VAL_ARR } },
{ HAWK_T("VAL_BCHAR"), { HAWK_VAL_BCHR } },
{ HAWK_T("VAL_BOB"), { HAWK_VAL_BOB } },
{ HAWK_T("VAL_CHAR"), { HAWK_VAL_CHAR } },
{ HAWK_T("VAL_FLT"), { HAWK_VAL_FLT } },
{ HAWK_T("VAL_FUN"), { HAWK_VAL_FUN } },