Skip to content

Commit

Permalink
use Number instead of double for functions (will break things ;-) )
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Sep 10, 2024
1 parent d86ad71 commit f796742
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
public final class RandRange implements Function {
private static final long serialVersionUID = 2380288324240209290L;

public static double call(PageContext pc, Number number1, Number number2) throws ExpressionException {
public static Number call(PageContext pc, Number number1, Number number2) throws ExpressionException {
return call(pc, number1, number2, "cfmx_compat");
}

public static double call(PageContext pc, Number number1, Number number2, String algo) throws ExpressionException {
public static Number call(PageContext pc, Number number1, Number number2, String algo) throws ExpressionException {

int min = Caster.toIntValue(number1);
int max = Caster.toIntValue(number2);
Expand Down

0 comments on commit f796742

Please sign in to comment.