improved the slicing function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-01 18:57:33 +09:00
parent 7007d9add0
commit 86ea4e7071
5 changed files with 51 additions and 23 deletions

View File

@ -145,7 +145,7 @@ static hcl_pfrc_t pf_str_slice (hcl_t* hcl, hcl_mod_t* mod, hcl_ooi_t nargs)
}
if (!HCL_OOP_IS_SMOOI(a2))
{
hcl_seterrbfmt (hcl, HCL_EINVAL, "length not string - %O", a2);
hcl_seterrbfmt (hcl, HCL_EINVAL, "length not numeric - %O", a2);
return HCL_PF_FAILURE;
}