Skip to content

Commit 12c735f

Browse files
committed
Fixed value table first pair skipping.
1 parent 1ff121b commit 12c735f

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy