mirror of https://github.com/OISF/suricata
mpm/hs: fix compile warnings
CC util-mpm-hs-cache.o
util-mpm-hs-cache.c:301:59: error: implicit conversion loses integer precision: '__size_t' (aka 'unsigned long') to 'uint32_t'
(aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
301 | SCSha256Update(hasher, (const uint8_t *)ref_info, strlen(ref_info));
| ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
util-mpm-hs-cache.c:310:46: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uint32_t'
(aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
310 | if (!SCSha256FinalizeToHex(hasher, hash, hash_len)) {
| ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
2 errors generated.
pull/15486/head
parent
781bd5184e
commit
736f50600f
Loading…
Reference in New Issue