Fixing the varref bug, DONEgit add *!

This commit is contained in:
Udaya Raj Subedi 2025-03-07 20:41:58 +01:00
parent c141def0c9
commit 47a2e8bcf8
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ void EmitCFunc::displayEmit(AstNode* nodep, bool isScan) {
if (func != "") {
puts(func);
} else if (argp) {
const bool addrof = isScan || (fmt == '@');
const bool addrof = isScan || (fmt == '@') || (fmt == 'p');
if (addrof) puts("&(");
iterateConst(argp);
if (!addrof) emitDatap(argp);