From b081a5cc2834ea7ea4bb256a20dc6c150d74f77c Mon Sep 17 00:00:00 2001 From: Don Cross Date: Sat, 5 Oct 2024 12:11:50 -0400 Subject: [PATCH] Kotlin: replace deprecated "reversed" with "asReversed". --- generate/template/astronomy.kt | 2 +- .../main/kotlin/io/github/cosinekitty/astronomy/astronomy.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generate/template/astronomy.kt b/generate/template/astronomy.kt index b4b00e35..f30061cc 100644 --- a/generate/template/astronomy.kt +++ b/generate/template/astronomy.kt @@ -3666,7 +3666,7 @@ private fun getPlutoSegment(tt: Double): List? { } add(seg[0]) - }.reversed() + }.asReversed() // Fade-mix the two series so that there are no discontinuities. for (i in (PLUTO_NSTEPS-2) downTo 1) { diff --git a/source/kotlin/src/main/kotlin/io/github/cosinekitty/astronomy/astronomy.kt b/source/kotlin/src/main/kotlin/io/github/cosinekitty/astronomy/astronomy.kt index 0ff7d11d..8ce749e2 100644 --- a/source/kotlin/src/main/kotlin/io/github/cosinekitty/astronomy/astronomy.kt +++ b/source/kotlin/src/main/kotlin/io/github/cosinekitty/astronomy/astronomy.kt @@ -3666,7 +3666,7 @@ private fun getPlutoSegment(tt: Double): List? { } add(seg[0]) - }.reversed() + }.asReversed() // Fade-mix the two series so that there are no discontinuities. for (i in (PLUTO_NSTEPS-2) downTo 1) {