Skip to content

Commit

Permalink
Handle boolean varargs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwharm committed Nov 14, 2022
1 parent 5075ad5 commit 5245a7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gtk4/src/main/java/io/github/jwharm/javagi/Interop.java
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ private Object unwrapJavagiTypes(Object o) {
if (o == null) {
return MemoryAddress.NULL;
}
if (o instanceof Boolean bool) {
return bool.booleanValue() ? 1 : 0;
}
if (o instanceof Proxy proxy) {
return proxy.handle();
}
Expand Down

0 comments on commit 5245a7a

Please sign in to comment.