Skip to content

Commit

Permalink
CString annotation uses a single argument
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Sep 20, 2024
1 parent b692377 commit c57286b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ private Expression processMethod(
new MethodCallExpr(argExpr, "asInt"),
new MethodCallExpr(lenExpr, "asInt"))));
} else if (annotatedWith(parameter, CString.class)) {
paramTypes.add(valueType("I32"));
paramTypes.add(valueType("I32"));
arguments.add(
new MethodCallExpr(
Expand Down
2 changes: 1 addition & 1 deletion function-processor/src/test/resources/SimpleGenerated.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static HostFunction[] toHostFunctions(Simple functions) {
},
"simple",
"printx",
List.of(ValueType.I32, ValueType.I32),
List.of(ValueType.I32),
List.of()
),
new HostFunction(
Expand Down

0 comments on commit c57286b

Please sign in to comment.