Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit12c735f

Browse files
committed
Fixed value table first pair skipping.
1 parent1ff121b commit12c735f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/parser/dbclineparser.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,13 @@ bool DbcLineParser::ParseValTableLine(Comment_t* comm, const std::string& line)
511511
// last item will be ';' and number of items will be even
512512
auto items =resplit(valueline,kRegValTable,0);
513513

514-
if ((items.size() >=5) && (items.back() ==";") && (items.size() %2 ==0))
514+
if ((items.size() >=3) && (items.back() ==";") && (items.size() %2 ==0))
515515
{
516516
comm->MsgId = (clear_msgid(atoi(items[1].c_str())));
517517
comm->SigName = items[2];
518518
comm->Text ="";
519519

520-
for (size_t valpair =5; valpair < (items.size() -1); valpair +=2)
520+
for (size_t valpair =3; valpair < (items.size() -1); valpair +=2)
521521
{
522522
comm->Text +="" + items[valpair +0] +" :";
523523
comm->Text += items[valpair +1] +'\n';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp