OSDN Git Service

lpdump: Use unsigned value for shift
authorGreg Kaiser <gkaiser@google.com>
Tue, 17 Dec 2019 13:43:47 +0000 (05:43 -0800)
committerGreg Kaiser <gkaiser@google.com>
Tue, 17 Dec 2019 13:43:47 +0000 (05:43 -0800)
commit669932f3ff6d168317788c130bc39634ee5ba0c0
treec8e6465622db7323359251886a3f97bded63e1c0
parent35692b040079b188c487314f5489e55476518f25
lpdump: Use unsigned value for shift

Shifting a signed 32-bit value by 31 bits is implementation-defined
behavior.  While our toolchains are most probably doing the
expected thing, we make this an unsigned value out of paranoia.

Test: TreeHugger
Change-Id: I551fcf1ac7a27ebd7c1365cd6a9df7267f569c44
partition_tools/lpdump.cc