From 6e8a56f00ab10ca0cc92078aea3fac4f004ff2f0 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Wed, 13 Feb 2019 11:09:57 +0300 Subject: [PATCH] Fix interop test for 32-bit targets. --- backend.native/tests/interop/basics/3.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.native/tests/interop/basics/3.kt b/backend.native/tests/interop/basics/3.kt index 7d6f4557f13..7f3cb8d81f4 100644 --- a/backend.native/tests/interop/basics/3.kt +++ b/backend.native/tests/interop/basics/3.kt @@ -9,7 +9,7 @@ fun main(args: Array) { 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()[0] val bValue = b!!.reinterpret()[0]