sanitize: use 1u (unsigned) for flag bit shifts

Fixes #175
This commit is contained in:
Wolfgang Bumiller 2017-02-14 19:17:45 +01:00
parent 6172ba8f84
commit 0258612815

4
opts.c
View file

@ -170,9 +170,9 @@ void opts_set(uint32_t *flags, size_t idx, bool on) {
LONGBIT_SET(lb, idx);
if (on)
flags[lb.idx] |= (1<<(lb.bit));
flags[lb.idx] |= (1u<<(lb.bit));
else
flags[lb.idx] &= ~(1<<(lb.bit));
flags[lb.idx] &= ~(1u<<(lb.bit));
}
void opts_setoptimlevel(unsigned int level) {