From b2d97651b1a1809f014d301e41aa6457aaf49d66 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sun, 21 Apr 2019 22:34:35 +0300 Subject: [PATCH] Removed unnecessary inlines --- build.gradle.kts | 1 + .../kotlin/scientifik/kmath/structures/BufferAccessor2D.kt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f7b63a680..b4610930e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -90,6 +90,7 @@ subprojects { compilations.all { kotlinOptions { jvmTarget = "1.8" + //freeCompilerArgs = listOf("-Xno-call-assertions", "-Xno-param-assertions") } } } diff --git a/kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/BufferAccessor2D.kt b/kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/BufferAccessor2D.kt index ac0727f7c..b14da5d99 100644 --- a/kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/BufferAccessor2D.kt +++ b/kmath-core/src/commonMain/kotlin/scientifik/kmath/structures/BufferAccessor2D.kt @@ -7,9 +7,9 @@ import kotlin.reflect.KClass */ class BufferAccessor2D(val type: KClass, val rowNum: Int, val colNum: Int) { - inline operator fun Buffer.get(i: Int, j: Int) = get(i + colNum * j) + operator fun Buffer.get(i: Int, j: Int) = get(i + colNum * j) - inline operator fun MutableBuffer.set(i: Int, j: Int, value: T) { + operator fun MutableBuffer.set(i: Int, j: Int, value: T) { set(i + colNum * j, value) }