diff options
author | Josh Gao <jmgao@google.com> | 2019-03-15 14:49:25 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2019-03-15 14:54:32 -0700 |
commit | 1e1ae45a8c24ac4ef390a731c65fcf4e6a206306 (patch) | |
tree | 162058324924220e39cc3bbde9b6d4e98aaedc9d /libcutils/sockets_unix.cpp | |
parent | eecd5cc53255a2986b094ecca2fe26976dfce768 (diff) |
adb: avoid sign extension of shell return code.
Windows has int32_t return codes, which results in return codes 128-255
being sign extended into a negative number. Manually truncate the return
codes we get to preserve their values.
Test: test_device.py on windows
Change-Id: If41d6d469350301704f6ecff72ad17b412db3e04
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions