fixed a minor typecasting flaw

This commit is contained in:
2021-07-24 15:28:59 +00:00
parent fe019aef1f
commit b78513ad0a
3 changed files with 25 additions and 24 deletions

View File

@ -472,7 +472,7 @@ int hcl_setoption (hcl_t* hcl, hcl_option_t id, const void* value)
{
hcl_uch_t* v1;
hcl_bch_t* v2;
hcl_ucs_t* v = (hcl_bcs_t*)value;
hcl_ucs_t* v = (hcl_ucs_t*)value;
v1 = hcl_dupuchars(hcl, v->ptr, v->len);
if (HCL_UNLIKELY(!v1)) return -1;