Merge dev into master #59

Merged
altavir merged 37 commits from dev into master 2019-05-31 12:35:58 +03:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit b2d97651b1 - Show all commits

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