Fix interop test for 32-bit targets.

This commit is contained in:
Nikolay Igotti
2019-02-13 11:09:57 +03:00
committed by Nikolay Igotti
parent ca405e0344
commit 6e8a56f00a
+1 -1
View File
@@ -9,7 +9,7 @@ fun main(args: Array<String>) {
val values = intArrayOf(14, 12, 9, 13, 8)
val count = values.size
cstdlib.qsort(values.refTo(0), count.toULong(), IntVar.size.convert(), staticCFunction { a, b ->
cstdlib.qsort(values.refTo(0), count.convert(), IntVar.size.convert(), staticCFunction { a, b ->
val aValue = a!!.reinterpret<IntVar>()[0]
val bValue = b!!.reinterpret<IntVar>()[0]