Skip to content
Browse files
Correct exception message for integer() (Fixes #1193)
  • Loading branch information
PseudoKnight committed May 26, 2020
1 parent 010a254 commit 268cfd4e9e8da291c73c8c164b3acc5188445938
Showing 1 changed file with 1 addition and 1 deletion.
@@ -2525,7 +2525,7 @@ public Boolean runAsync() {

public Mixed exec(Target t, Environment environment, Mixed... args) throws ConfigRuntimeException {
return new CInt((long) Static.getDouble(args[0], t), t);
return new CInt((long) ArgumentValidation.getNumber(args[0], t), t);


0 comments on commit 268cfd4

Please sign in to comment.