Skip to content

Commit f08582f

Browse files
committed
Add missing getPeer() call for instance parameters
When passing a pointer to this as instance parameters, a getPeer() call was missing, and the pointer object itself got passed, not the address it points to, resulting in compilation errors. This is now fixed.
1 parent 5381d6b commit f08582f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/gir2java/GirParser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ private void parseMethodOrFunction(Element root, ParsingContext context) {
802802
.staticInvoke("pointerTo")
803803
.arg(JExpr._this())
804804
.arg(enclosing.dotclass())
805+
.invoke("getPeer")
805806
);
806807
} else if (paramDesc.isVarargs()) {
807808
JVar param = wrapper.varParam(Object.class, "varargs");

0 commit comments

Comments
 (0)