From ee302e289a6ed5711411c7823a1d46f0a76ecc8d Mon Sep 17 00:00:00 2001 From: MFlisar Date: Sun, 14 Apr 2024 14:52:35 +0200 Subject: [PATCH] Formatter Bugfx --- .idea/kotlinc.xml | 2 +- .../main/java/com/michaelflisar/composechangelog/Changelog.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index 8d81632..fe63bb6 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/library/core/src/main/java/com/michaelflisar/composechangelog/Changelog.kt b/library/core/src/main/java/com/michaelflisar/composechangelog/Changelog.kt index ce8731b..fc2b3c4 100644 --- a/library/core/src/main/java/com/michaelflisar/composechangelog/Changelog.kt +++ b/library/core/src/main/java/com/michaelflisar/composechangelog/Changelog.kt @@ -236,7 +236,7 @@ object ChangelogDefaults { val major = floor((tmp / 10f.pow(4))).toInt() tmp -= major * 10f.pow(6) val minor = floor((tmp / 10f.pow(2))).toInt() - tmp -= major * 10f.pow(4) + tmp -= minor * 10f.pow(4) val patch = tmp.toInt() "$prefix$major.$minor.$patch" } @@ -246,7 +246,7 @@ object ChangelogDefaults { val major = floor((tmp / 10f.pow(6))).toInt() tmp -= major * 10f.pow(6) val minor = floor((tmp / 10f.pow(4))).toInt() - tmp -= major * 10f.pow(4) + tmp -= minor * 10f.pow(4) val patch = floor((tmp / 10f.pow(2))).toInt() tmp -= patch * 10f.pow(2) val candidate = tmp.toInt()