Skip to content

Commit

Permalink
fix(#3635): qulice
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Dec 11, 2024
1 parent 5e17b2f commit a9fcd11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,15 @@ private static ConcurrentHashMap<String, String> 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",
determinant,
insert
);
}
final Phi ret;
final byte[] content = Arrays.copyOfRange(message, 1, message.length);
switch (determinant) {
case 0:
final ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES);
Expand Down

0 comments on commit a9fcd11

Please sign in to comment.