Skip to content

Commit

Permalink
fix(generator) local boolean-int variable type
Browse files Browse the repository at this point in the history
  • Loading branch information
Spasi committed Dec 9, 2024
1 parent 96fe1d0 commit a4e94b6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,10 @@ class Func(
printParams: PrintWriter.() -> Unit
) {
val returnsObject = returns.nativeType is WrappedPointerType
val returnType = if (returnsObject) returns.nativeType.className else returns.nativeMethodType(nullable = false)
val returnType = if (returnsObject || returns.nativeType.mapping == PrimitiveMapping.BOOLEAN4)
returns.javaMethodType
else
returns.nativeMethodType(nullable = false)

if (hasFinally)
print(t)
Expand Down

0 comments on commit a4e94b6

Please sign in to comment.