]> git.tuebingen.mpg.de Git - paraslash.git/commit
attribute: Avoid shifting 32 bit integers.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 7 Feb 2016 16:33:15 +0000 (17:33 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 7 Feb 2016 16:33:15 +0000 (17:33 +0100)
commit7505e8b0458eed519ee5121bf9a8007fb72eb17a
tree2968732f5bde5b7137a3b426282a7a45d78e37ed
parent05e3b9416f4d08b49c3a18dce78e2e9235f94e7c
attribute: Avoid shifting 32 bit integers.

Doing "1UL << i" is wrong here, because the constant "1UL" is 32 bit
on 32 bit systems and we definitely need 64 bit quantities for the
attribute mask.

Fix this by using an uint64_t variable instead.
attribute.c