]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/randutils: use explicit data types for bit ops
authorKarel Zak <kzak@redhat.com>
Tue, 28 Jan 2020 11:30:23 +0000 (12:30 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Jan 2020 11:30:23 +0000 (12:30 +0100)
commit3534b2c7c70776c7d4ed98b435949832981ac3aa
tree999232c0d1b93559b7df4804a05119df37f35760
parentdfe28f0e01df66e5d88f22f6affa305bcf5158aa
lib/randutils: use explicit data types for bit ops

ASAN is pretty unhappy with getpid() << 16, it seems better to save
into unsigned int and than do the bit-op.

Addresses: https://github.com/karelzak/util-linux/issues/942
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/randutils.c