commit | d2fbd5cd896ffaf7b6778e4f6f700ee504bf90f4 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Fri Mar 15 14:49:25 2019 -0700 |
committer | Josh Gao <jmgao@google.com> | Fri Mar 15 14:54:32 2019 -0700 |
tree | 02d140257288711675303a1d746449448040f06f | |
parent | 9e97113beb7cc5c8edef725b8a8301854be5f453 [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