From d1bcfb2dedcbf64496883d42d1963c71782e34df Mon Sep 17 00:00:00 2001 From: Daniel Seemaier Date: Thu, 18 Apr 2024 12:38:55 +0200 Subject: [PATCH] fix: metis bug due to toker changes --- kagen/io/metis.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kagen/io/metis.cpp b/kagen/io/metis.cpp index c646c55..19f98f0 100644 --- a/kagen/io/metis.cpp +++ b/kagen/io/metis.cpp @@ -115,7 +115,9 @@ std::size_t ParseBody( edge_cb(edge_weight, v); } - toker.ConsumeChar('\n'); + if (toker.ValidPosition()) { + toker.ConsumeChar('\n'); + } } if (!exited_preemptively) {