From 9019abff9ba5a31f5ecb2b0c388b1996507f99a1 Mon Sep 17 00:00:00 2001 From: zeroflag Date: Mon, 14 Feb 2022 13:12:06 +0100 Subject: [PATCH] fixed range toString crash % instead of /mod 151 --- src/main/java/com/vectron/fcl/types/Range.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/vectron/fcl/types/Range.java b/src/main/java/com/vectron/fcl/types/Range.java index af94936..3f0a380 100644 --- a/src/main/java/com/vectron/fcl/types/Range.java +++ b/src/main/java/com/vectron/fcl/types/Range.java @@ -67,8 +67,8 @@ public class Range implements Obj { @Override public String toString() { return by.doubleValue() == 1 - ? String.format("%d..%d (%d)", from, to, current) - : String.format("%d...%d (%d) by %d", from, to, current, by); + ? String.format("%s..%s (%s)", from, to, current) + : String.format("%s...%s (%s) by %s", from, to, current, by); } @Override