Content-Length: 253574 | pFad | https://github.com/astand/c-coderdbc/commit/c7ae93ea852f39104d806e3be9681b704a41e297

0F Fixed unpack sig format bug. · astand/c-coderdbc@c7ae93e · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/astand/c-coderdbc/commit/c7ae93ea852f39104d806e3be9681b704a41e297

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy