diff options
-rw-r--r-- | scripts/toy.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index fa50ddf..bd18e40 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -89,7 +89,7 @@ return new Object() { } int getDay() { - return (getTime() / DAY) * DAY; + return ((int)(getTime() / DAY) * DAY); } public <T> T getProp(String i, java.util.function.Function<String, T> f, T d = null) { |