Skip to content

Commit b786182

Browse files
committed
Fix definition of main to use c_char
1 parent aecefd9 commit b786182

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp2rust/converter/models/converter_refcount.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,7 @@ bool ConverterRefCount::ConvertCXXOperatorCallExpr(
20962096
void ConverterRefCount::ConvertFunctionParameters(clang::FunctionDecl *decl) {
20972097
PushConversionKind push(*this, ConversionKind::Unboxed);
20982098
if (decl->isMain() && (decl->getNumParams() != 0U)) {
2099-
StrCat(std::format("{}: i32, {}: Ptr<Ptr<u8>>",
2099+
StrCat(std::format("{}: i32, {}: Ptr<Ptr<::core::ffi::c_char>>",
21002100
GetNamedDeclAsString(decl->getParamDecl(0)),
21012101
GetNamedDeclAsString(decl->getParamDecl(1))));
21022102
} else {

0 commit comments

Comments
 (0)