Skip to content

Commit

Permalink
DC-5198 - overload toDoubleValue with long argument
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Dec 13, 2024
1 parent f8a2b7d commit 3417531
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions core/src/main/java/lucee/runtime/op/Caster.java
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,14 @@ public static double toDoubleValue(Number n) {
return n.doubleValue();
}

public static double toDoubleValue(long l) {
return l;
}

public static double toDoubleValue(Long l) {
return l.doubleValue();
}

public static double toDoubleValue(float f) {
return f;
}
Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="6.2.0.212-SNAPSHOT"/>
<property name="version" value="6.2.0.213-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>6.2.0.212-SNAPSHOT</version>
<version>6.2.0.213-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down
2 changes: 1 addition & 1 deletion test/tickets/LDEV5198.cfc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
component extends = "org.lucee.cfml.test.LuceeTestCase" skip=true {
component extends = "org.lucee.cfml.test.LuceeTestCase" {

function beforeAll(){
variables.preciseMath = getApplicationSettings().preciseMath;
Expand Down

0 comments on commit 3417531

Please sign in to comment.