From eeaa71072a89369fcb5fe8bc3706e409eb3979ec Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 11 Mar 2019 18:36:10 +0300 Subject: [PATCH] Fix IR serialization issue --- core/src/main/java/org/teavm/cache/VarDataInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/cache/VarDataInput.java b/core/src/main/java/org/teavm/cache/VarDataInput.java index 24806ed0e..7c0050bf3 100644 --- a/core/src/main/java/org/teavm/cache/VarDataInput.java +++ b/core/src/main/java/org/teavm/cache/VarDataInput.java @@ -65,7 +65,7 @@ public class VarDataInput { public long readSignedLong() throws IOException { long value = readUnsignedLong(); - return (value & 1) == 0 ? (value >> 1) : ~(value >> 1); + return (value & 1) == 0 ? (value >>> 1) : ~(value >>> 1); } public float readFloat() throws IOException {