]> git.sur5r.net Git - i3/i3/commit
Fixes for undefined behaviour on signed shift (#3453)
authorAlan Barr <a.barr@outlook.com>
Sat, 13 Oct 2018 18:04:40 +0000 (19:04 +0100)
committerOrestis <orestisf1993@gmail.com>
Sat, 13 Oct 2018 18:04:40 +0000 (21:04 +0300)
commit7c0994dafc91944477e03700304b2308b0e3fdb1
treec883c518b2c6f2c325caf09aafb4660ace39a337
parentdfe89cc4f1706a6fae0ae3816787d0fb22dadd7d
Fixes for undefined behaviour on signed shift (#3453)

Fixes for undefined behaviour on signed shift

Change literal 1 to unsigned to allow safe bitshift of 31.
Caught by cppcheck.

Make 0xFF unsigned to prevent a left shift into signed bit.
Spotted by @orestisf1993
i3bar/src/ipc.c
include/i3/ipc.h
libi3/get_colorpixel.c