From dbf103da326479fdae87852a207e360692341dd2 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 7 Oct 2024 21:15:05 +0200 Subject: [PATCH] Fix hexadecimal line number in abort msgs --- src/debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug.cpp b/src/debug.cpp index 04d59a6d7..8a9704dd7 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -54,7 +54,7 @@ void sanity_check_fn(const char *assertion, const char *file, #endif errorstream << std::endl << "In thread " << std::hex - << std::this_thread::get_id() << ":" << std::endl; + << std::this_thread::get_id() << ":\n" << std::dec; errorstream << file << ":" << line << ": " << function << ": An engine assumption '" << assertion << "' failed." << std::endl; @@ -69,7 +69,7 @@ void fatal_error_fn(const char *msg, const char *file, #endif errorstream << std::endl << "In thread " << std::hex - << std::this_thread::get_id() << ":" << std::endl; + << std::this_thread::get_id() << ":\n" << std::dec; errorstream << file << ":" << line << ": " << function << ": A fatal error occurred: " << msg << std::endl;