From 341753183ddb040d3c3a610482b317e7dbebdbfe Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Fri, 13 Dec 2024 15:53:11 +0100 Subject: [PATCH] DC-5198 - overload toDoubleValue with long argument --- core/src/main/java/lucee/runtime/op/Caster.java | 8 ++++++++ loader/build.xml | 2 +- loader/pom.xml | 2 +- test/tickets/LDEV5198.cfc | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/lucee/runtime/op/Caster.java b/core/src/main/java/lucee/runtime/op/Caster.java index 2e10c42f4e..510c3a48db 100755 --- a/core/src/main/java/lucee/runtime/op/Caster.java +++ b/core/src/main/java/lucee/runtime/op/Caster.java @@ -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; } diff --git a/loader/build.xml b/loader/build.xml index 29f520e948..5527c4ef94 100644 --- a/loader/build.xml +++ b/loader/build.xml @@ -2,7 +2,7 @@ - + diff --git a/loader/pom.xml b/loader/pom.xml index 0a0d262558..858c24edbc 100644 --- a/loader/pom.xml +++ b/loader/pom.xml @@ -3,7 +3,7 @@ org.lucee lucee - 6.2.0.212-SNAPSHOT + 6.2.0.213-SNAPSHOT jar Lucee Loader Build diff --git a/test/tickets/LDEV5198.cfc b/test/tickets/LDEV5198.cfc index f9ac57d2fe..dd44b3183b 100644 --- a/test/tickets/LDEV5198.cfc +++ b/test/tickets/LDEV5198.cfc @@ -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;