X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/270869139db617e29a35bb9ded41087bb702f9ac..9daf4fcdae88f72af60aeb0c7722841af02233d4:/lunaix-os/includes/lunaix/ds/hstr.h diff --git a/lunaix-os/includes/lunaix/ds/hstr.h b/lunaix-os/includes/lunaix/ds/hstr.h index f43a6db..77096aa 100644 --- a/lunaix-os/includes/lunaix/ds/hstr.h +++ b/lunaix-os/includes/lunaix/ds/hstr.h @@ -7,8 +7,8 @@ struct hstr { - u32_t hash; - u32_t len; + unsigned int hash; + unsigned int len; const char* value; }; @@ -30,7 +30,7 @@ struct hstr #define HSTR_LEN(hstr) ((hstr).len) #define HSTR_HASH(hstr) ((hstr).hash) -inline void +static inline void hstr_rehash(struct hstr* hash_str, u32_t truncate_to) { hash_str->hash = strhash_32(hash_str->value, truncate_to);