| Index: mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java
|
| diff --git a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java
|
| index c4e5d787e849aa27375c3cfc0dc6ae67f79e9120..3541f214a909019517b0976858ccd8353cbb3b27 100644
|
| --- a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java
|
| +++ b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java
|
| @@ -166,7 +166,7 @@ public class Encoder {
|
| public void encode(boolean v, int offset, int bit) {
|
| if (v) {
|
| byte encodedValue = mEncoderState.byteBuffer.get(mBaseOffset + offset);
|
| - encodedValue |= 1 << bit;
|
| + encodedValue |= (byte) (1 << bit);
|
| mEncoderState.byteBuffer.put(mBaseOffset + offset, encodedValue);
|
| }
|
| }
|
| @@ -334,7 +334,7 @@ public class Encoder {
|
| for (int j = 0; j < BindingsHelper.ALIGNMENT; ++j) {
|
| int booleanIndex = BindingsHelper.ALIGNMENT * i + j;
|
| if (booleanIndex < v.length && v[booleanIndex]) {
|
| - bytes[i] |= (1 << j);
|
| + bytes[i] |= (byte) (1 << j);
|
| }
|
| }
|
| }
|
|
|