issue #26: the reason was the dangling pointer?

This commit is contained in:
minjaesong
2019-06-23 02:20:01 +09:00
parent 41b68aa132
commit 44405111eb
4 changed files with 41 additions and 41 deletions

View File

@@ -13,7 +13,7 @@ internal class UnsafeCvecArray(val width: Int, val height: Int) {
private inline fun toAddr(x: Int, y: Int) = 16L * (y * width + x)
fun zerofill() = UnsafeHelper.unsafe.setMemory(this.array.ptr, TOTAL_SIZE_IN_BYTES, 0)
fun zerofill() = array.fillWith(0)
init {
zerofill()