Mauro Carvalho Chehab
95c520690f
media: don't do a 31 bit shift on a signed int
...
On 32-bits archs, a signed integer has 31 bits plus on extra
bit for signal. Due to that, touching the 32th bit with something
like:
int bar = 1 << 31;
has an undefined behavior in C on 32 bit architectures, as it
touches the signal bit. This is warned by cppcheck.
Instead, force the numbers to be unsigned, in order to solve this
issue.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org >
2019-08-26 14:11:10 -03:00
..
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-28 11:21:51 -04:00
2019-05-21 11:28:39 +02:00
2019-06-14 14:31:48 -06:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:07 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2019-05-28 11:21:51 -04:00
2019-05-21 11:28:39 +02:00
2019-08-21 18:39:55 -03:00
2019-08-21 18:39:55 -03:00
2019-05-30 11:26:37 -07:00
2019-08-26 14:11:10 -03:00
2018-07-30 08:50:25 -04:00
2019-05-21 10:50:46 +02:00
2019-05-30 11:26:41 -07:00
2019-06-05 17:37:10 +02:00
2017-12-28 13:16:01 -05:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:10 +02:00
2019-06-05 17:37:10 +02:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:39 +02:00
2018-12-03 13:23:24 -05:00
2019-05-30 11:26:37 -07:00