@@ -151,7 +151,7 @@ uint32_t DbcLineParser::ParseMultiTrans(std::vector<std::string>& outnodes, std:
151
151
152
152
if (chunks.size () >= 3 && chunks[0 ] == " BO_TX_BU_" )
153
153
{
154
- ret = clear_msgid (atoll (chunks[1 ].c_str ()));
154
+ ret = clear_msgid (static_cast < uint32_t >( atoll (chunks[1 ].c_str () )));
155
155
156
156
if (ret != 0 )
157
157
{
@@ -453,7 +453,7 @@ bool DbcLineParser::ParseCommentLine(Comment_t* cm, const std::string& line)
453
453
// 1 CM_ marker
454
454
// 2 target (message or signal)
455
455
// 3 msg id
456
- uint32_t id = static_cast <uint32_t >(( atoll (meta[2 ].c_str () )));
456
+ uint32_t id = static_cast <uint32_t >(atoll (meta[2 ].c_str ()));
457
457
458
458
// clear message id from high 3 bits
459
459
cm->MsgId = clear_msgid (id);
@@ -510,7 +510,7 @@ bool DbcLineParser::ParseAttributeLine(AttributeDescriptor_t* attr, const std::s
510
510
if (items.size () > 4 && items[1 ] == " GenMsgCycleTime" && items[2 ] == " BO_" )
511
511
{
512
512
attr->Type = AttributeType::CycleTime;
513
- attr->MsgId = clear_msgid (atoll (items[3 ].c_str ()));
513
+ attr->MsgId = clear_msgid (static_cast < uint32_t >( atoll (items[3 ].c_str () )));
514
514
// read value of ms of cycle time for the current message
515
515
attr->Value = atoi (items[4 ].c_str ());
516
516
ret = true ;
@@ -549,7 +549,7 @@ bool DbcLineParser::ParseValTableLine(Comment_t* comm, const std::string& line)
549
549
550
550
if ((items.size () >= 3 ) && (items.back () == " ;" ) && (items.size () % 2 == 0 ))
551
551
{
552
- comm->MsgId = (clear_msgid (atoll (items[1 ].c_str ())));
552
+ comm->MsgId = (clear_msgid (static_cast < uint32_t >( atoll (items[1 ].c_str () ))));
553
553
comm->SigName = items[2 ];
554
554
comm->Text = " " ;
555
555
comm->ca_target = CommentTarget::Signal;
0 commit comments