Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79fc48e

Browse files
committed
Fixed comment printing.
1 parent 0947ebf commit 79fc48e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen/c-main-generator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,12 @@ void CiMainGenerator::WriteSigStructField(const SignalDescriptor_t& sig, bool bi
377377
// 2 type of signal
378378
if (sig.Offset != 0)
379379
{
380-
fwriter->AppendText(PrintF(" Offset= %-18d", sig.Offset));
380+
fwriter->AppendText(PrintF(" Offset= %-18d", (int)sig.Offset));
381381
}
382382

383383
if (sig.Factor != 1)
384384
{
385-
fwriter->AppendText(PrintF(" Factor= %-15d", sig.Factor));
385+
fwriter->AppendText(PrintF(" Factor= %-15d", (int)sig.Factor));
386386
}
387387
}
388388

0 commit comments

Comments
 (0)