Jeffrey Altman
f341fa7721
prevent unintended sign extension errors
...
When an unsigned char is shifted << 24 bits its type will be
promoted to signed 32-bits. If the value is then assigned to
an unsigned 64-bit value sign extension will occur.
Prevent the unwanted sign extension by explicitly casting the
value to unsigned long before shifting.
Change-Id: Iabeac0f17dc3229a2dc89abe71960a8ffbf523f8
2022-01-16 00:23:05 -05:00
..
2022-01-15 18:54:57 +11:00
2010-05-22 13:16:52 -07:00
2010-05-22 13:16:52 -07:00
2022-01-15 18:54:57 +11:00
2022-01-15 18:54:57 +11:00
2021-05-03 15:02:43 -05:00
2022-01-14 17:10:16 -06:00
2015-07-31 17:30:23 +12:00
2011-11-02 21:42:08 -05:00
2022-01-15 18:54:57 +11:00
2022-01-15 18:54:57 +11:00
2022-01-15 18:54:57 +11:00
2022-01-15 18:54:57 +11:00
2022-01-15 18:54:57 +11:00
2021-12-23 13:52:12 +11:00
2022-01-15 18:54:57 +11:00
2022-01-15 18:54:57 +11:00
2022-01-15 18:54:57 +11:00
2015-09-27 16:36:24 -05:00
2022-01-14 17:10:16 -06:00
2022-01-15 18:54:57 +11:00
2021-02-28 18:13:08 -06:00
2010-08-20 13:06:54 -04:00
2022-01-15 18:54:57 +11:00
2017-04-29 01:05:59 -04:00
2022-01-15 18:54:57 +11:00
2022-01-15 18:54:57 +11:00
2022-01-16 00:23:05 -05:00
2022-01-15 18:54:57 +11:00
2021-02-28 18:13:08 -06:00
2021-02-28 18:13:08 -06:00
2012-02-20 19:45:41 +00:00
2022-01-15 18:54:57 +11:00
2021-02-28 18:13:08 -06:00