diff options
author | Todd Kennedy <toddke@google.com> | 2016-06-09 15:22:15 -0700 |
---|---|---|
committer | Todd Kennedy <toddke@google.com> | 2016-06-09 15:22:15 -0700 |
commit | e2e1ef0581c188014a0b11bbf46325b82d959720 (patch) | |
tree | 33b5d32cd040b0780cb583e3a8c425832a3ca604 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | af41485757c5da4bff8dafdc2f77d1d9a1ae446d (diff) |
fix prefix generation
when performing bitwise operations, java promotes byte's to int's.
this is normally okay except when the value is negative. in that
case, java extends the sign bits. this means that after shifting,
all of the upper bits are most likely going to be all f's. instead,
undo the sign extension by pulling out just the 8 bits we're
interested in.
Change-Id: I89f7244f6b675be2cca4a185a7002b5f8a6eece1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions