diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-20 10:56:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 10:56:32 +0200 |
commit | 77b93c9afaba7edc950861b54259a94733b3274c (patch) | |
tree | 7199ba68409175271c949e340616bccdc8482d78 | |
parent | 4bf4819a0dfddc53810a640e3be83dbbeeab0802 (diff) | |
parent | 96d775860fb7e404d6acaf7e8dfbd171cfbcee15 (diff) | |
download | usbutils-77b93c9afaba7edc950861b54259a94733b3274c.tar.gz |
Merge pull request #149 from qiankehan/undefined
Fix an runtime error reported by undefind sanitizer
-rw-r--r-- | names.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ static unsigned int hashnum(unsigned int num) { - unsigned int mask1 = HASH1 << 27, mask2 = HASH2 << 27; + unsigned int mask1 = (unsigned int)HASH1 << 27, mask2 = (unsigned int)HASH2 << 27; for (; mask1 >= HASH1; mask1 >>= 1, mask2 >>= 1) if (num & mask1) |