]> git.ipfire.org Git - thirdparty/suricata.git/commit
util/hash-string: fix compile warning
authorVictor Julien <vjulien@oisf.net>
Sat, 12 Oct 2024 05:02:33 +0000 (07:02 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 25 Oct 2024 05:47:11 +0000 (07:47 +0200)
commitf0c4f9d64b585284bd4e972b9f7a8d7ea3d9b370
tree3af7c057bc554d67ebf15f2f20c34cb5635dd06f
parent270e19191b369481bbad734cb2e0441c9ca9bccd
util/hash-string: fix compile warning

Clang 19:

util-hash-string.c:41:16: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
   41 |     int len1 = strlen((char *)data1);
      |         ~~~~   ^~~~~~~~~~~~~~~~~~~~~
util-hash-string.c:42:16: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
   42 |     int len2 = strlen((char *)data2);
      |         ~~~~   ^~~~~~~~~~~~~~~~~~~~~
2 errors generated.
src/util-hash-string.c