Removed unnecessary inlines

This commit is contained in:
Alexander Nozik 2019-04-21 22:34:35 +03:00
parent e500046932
commit b2d97651b1
2 changed files with 3 additions and 2 deletions

View File

@ -90,6 +90,7 @@ subprojects {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
//freeCompilerArgs = listOf("-Xno-call-assertions", "-Xno-param-assertions")
}
}
}

View File

@ -7,9 +7,9 @@ import kotlin.reflect.KClass
*/
class BufferAccessor2D<T : Any>(val type: KClass<T>, val rowNum: Int, val colNum: Int) {
inline operator fun Buffer<T>.get(i: Int, j: Int) = get(i + colNum * j)
operator fun Buffer<T>.get(i: Int, j: Int) = get(i + colNum * j)
inline operator fun MutableBuffer<T>.set(i: Int, j: Int, value: T) {
operator fun MutableBuffer<T>.set(i: Int, j: Int, value: T) {
set(i + colNum * j, value)
}