From 4362a991b01670afed4b9497323bf2f2671b3824 Mon Sep 17 00:00:00 2001 From: Lucian Plesea Date: Wed, 15 Nov 2023 10:16:29 -0800 Subject: [PATCH] Update can.cpp --- mrf_apps/can.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mrf_apps/can.cpp b/mrf_apps/can.cpp index 976d9f9..7bcffc7 100644 --- a/mrf_apps/can.cpp +++ b/mrf_apps/can.cpp @@ -336,8 +336,8 @@ int can(const options &opt) { } BIT_SET(line, bit_pos); } - line += 4; // Points to the header end } + line += 4; // Points to the header end fclose(in_idx); #undef BIT_SET @@ -345,7 +345,7 @@ int can(const options &opt) { if (!opt.quiet) cout << "Index packed from " << in_size << " to " << FTELL(out_idx) << endl; - // line should point to the last line or the one after the last + // line should point to the end of header assert(header.size() == line); // swap all header values to big endian