From c81ceed7c620fe183c194a3ddf9b6b73d129c5a9 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Fri, 11 Aug 2017 17:54:40 +0300 Subject: [PATCH] Support builtin C _Bool type in interop Fix #756 --- .../kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt b/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt index ee81d679162..6852c83864c 100644 --- a/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt +++ b/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt @@ -70,6 +70,8 @@ internal fun convertUnqualifiedPrimitiveType(type: CValue): Type = when spelling = clang_getTypeSpelling(type).convertAndDispose() ) + CXTypeKind.CXType_Bool -> BoolType + else -> UnsupportedType }