Skip to content

Commit c7ae93e

Browse files
committed
Fixed unpack sig format bug.
1 parent ff267a4 commit c7ae93e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/c-sigprinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ std::string CSigPrinter::PrintSignalExpr(const SignalDescriptor_t* sig,
140140
t64 = "(uint64_t)";
141141
}
142142

143-
snprintf(workbuff, WBUFF_LEN, "(%s_d[%d] & (%s)) << %d)", t64.c_str(), bn, msk[bbc].c_str(), slen);
143+
snprintf(workbuff, WBUFF_LEN, "(%s(_d[%d] & (%s)) << %d)", t64.c_str(), bn, msk[bbc].c_str(), slen);
144144
tosigexpr += workbuff;
145145

146146
snprintf(workbuff, WBUFF_LEN, "((_m->%s >> %d) & (%s))", sig->Name.c_str(), slen,

0 commit comments

Comments
 (0)