Skip to content

Commit 8894cd8

Browse files
committed
If a type is mapped to Pointer, consider it a pointer
Otherwise, Pointers end up being passed to the methods declared native, which won't work.
1 parent 2152125 commit 8894cd8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/gir2java/ConvertedType.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public ConvertedType(ConvertedType other) {
6262
}
6363

6464
public boolean isPointer() {
65+
if ( (getJType() != null) && getJType().erasure().name().equals("Pointer")) {
66+
return true;
67+
}
6568
return (ctype != null) && (ctype.contains("*"));
6669
}
6770

0 commit comments

Comments
 (0)