From a9fcd110c214faa001d9ea533a9720965c112b84 Mon Sep 17 00:00:00 2001 From: maxonfjvipon Date: Wed, 11 Dec 2024 15:18:03 +0300 Subject: [PATCH] fix(#3635): qulice --- eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java index 18ea1ec55c..04cce11d29 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java @@ -236,8 +236,6 @@ private static ConcurrentHashMap load(final String src) throws I */ private Phi translate(final byte[] message, final String insert) { final byte determinant = message[0]; - final byte[] content = Arrays.copyOfRange(message, 1, message.length); - final Phi ret; if (determinant < 0 || determinant > 5) { throw new ExNative( "Can't determine EO object by given enum value #%d, insert %s", @@ -245,6 +243,8 @@ private Phi translate(final byte[] message, final String insert) { insert ); } + final Phi ret; + final byte[] content = Arrays.copyOfRange(message, 1, message.length); switch (determinant) { case 0: final ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES);