added hawk::hash()

This commit is contained in:
2023-07-03 01:42:14 +09:00
parent 9fb716d5a3
commit 3f01a77f1e
2 changed files with 16 additions and 1 deletions

View File

@ -2902,7 +2902,7 @@ static HAWK_INLINE hawk_uint_t hash (hawk_uint8_t* ptr, hawk_oow_t len)
hawk_int_t hawk_rtx_hashval (hawk_rtx_t* rtx, hawk_val_t* v)
{
hawk_val_type_t vtype = HAWK_RTX_GETVALTYPE (rtx, v);
hawk_val_type_t vtype = HAWK_RTX_GETVALTYPE(rtx, v);
hawk_int_t hv;
switch (vtype)