]> git.ipfire.org Git - thirdparty/util-linux.git/commit
c.h: fix compiler warning [-Werror=shift-count-overflow]
authorKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2023 15:36:13 +0000 (16:36 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2023 15:40:03 +0000 (16:40 +0100)
commit1ef0be3a1acfbe5bb8aac80a24e0a1d9a17876d1
tree47cedc5a3ae9660b3926f234dad45208a884ac53
parentfc6f3a8ae626e3996ccaf51939e7e3cf59c01d86
c.h: fix compiler warning [-Werror=shift-count-overflow]

It's probably typo in the original path (too many brackets:-)). Let's
be explicit about the types used in the calculation. '1 << n' means
the left shift is on 'int', but we need '(t)1 << n'.

Addresses: e53463ea40c58a6f84a597966ac69be9be72cd7d
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h