Skip to content

Commit f000eb5

Browse files
committed
Fix code
1 parent 108cdb7 commit f000eb5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cpp2rust/converter/converter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,8 @@ void Converter::EmitArgList(const CallInfo &info) {
16421642
case Kind::Inline:
16431643
ConvertParamTy(ca.param_type, ca.expr);
16441644
if (info.is_libc_passthrough) {
1645-
StrCat(std::format("as {}", Mapper::GetParamType(callee, i)));
1645+
StrCat(std::format(
1646+
"as {}", Mapper::GetParamType(GetCalleeOrExpr(info.expr), i)));
16461647
}
16471648
break;
16481649
}

0 commit comments

Comments
 (0)