Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebf3f814 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix unwanted sign-extention when converting byte -> int" am: dc599564

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1993170

Change-Id: Iae8390aca8aa53e758e3b82ef4f192bb19b483fe
parents c04902cb dc599564
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ public class SparseInputStream extends InputStream {
                ret = 0;
                break;
            case SparseChunk.FILL:
                ret = mCur.fill[(4 - ((int) mLeft & 0x3)) & 0x3];
                ret = Byte.toUnsignedInt(mCur.fill[(4 - ((int) mLeft & 0x3)) & 0x3]);
                break;
            default:
                throw new IOException("Unsupported Chunk:" + mCur.toString());