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()