From 1583e7284930149375e0b216bece42e25866c9d8 Mon Sep 17 00:00:00 2001 From: Sylar Date: Wed, 21 Jan 2026 05:39:19 +0100 Subject: [PATCH] Fixed a bug in ostd::Utils::printByteStream where the last ascii line wasn't printed --- other/build.nr | 2 +- src/ostd/Utils.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/other/build.nr b/other/build.nr index adf4269..67ce674 100644 --- a/other/build.nr +++ b/other/build.nr @@ -1 +1 @@ -1960 +1962 diff --git a/src/ostd/Utils.cpp b/src/ostd/Utils.cpp index 6d7916b..8b640ff 100755 --- a/src/ostd/Utils.cpp +++ b/src/ostd/Utils.cpp @@ -750,7 +750,6 @@ namespace ostd { i = 1; out.fg(ConsoleColors::BrightBlue).p("|"); - if (addr == end - 1) break; out.nl(); out.fg(ConsoleColors::BrightBlue).p("|"); out.fg(ConsoleColors::BrightGray).p(" -------- ").fg(ConsoleColors::BrightBlue).p("|").fg(ConsoleColors::BrightGray).p(" "); @@ -761,7 +760,9 @@ namespace ostd } out.fg(ConsoleColors::BrightBlue).p("| "); tmp.clear(); - out.reset().nl(); + out.reset(); + if (addr == end - 1) break; + out.nl(); out.fg(ConsoleColors::BrightBlue).p("| "); out.fg(ConsoleColors::BrightGray).p("0x"); out.fg(ConsoleColors::BrightCyan).p(Utils::getHexStr(addr + 1, false, 4)).fg(ConsoleColors::BrightBlue).p(" | ");