From 009d4f5241ae6e2d46af1f9d57e4e74fbc764f6d Mon Sep 17 00:00:00 2001 From: Johannes Kapfhammer Date: Mon, 7 Oct 2019 14:30:00 +0200 Subject: [PATCH] print int instead of int64_t in expression --- include/bits/soi-dbg.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/bits/soi-dbg.hpp b/include/bits/soi-dbg.hpp index 86adabe..390a1a6 100644 --- a/include/bits/soi-dbg.hpp +++ b/include/bits/soi-dbg.hpp @@ -173,7 +173,8 @@ T &&dbg_print(T &&value, std::string const& type, char const *file, int line, soi::print(value_buffer, ref); std::cerr << ANSI_DEBUG << "[" << file << ":" << line << " (" << function_name - << ")] " << ANSI_RESET << ANSI_EXPRESSION << expression + << ")] " << ANSI_RESET << ANSI_EXPRESSION + << replace_all(c, "int64_t", "int") << ANSI_RESET << " = " << ANSI_VALUE << value_buffer.rdbuf() << ANSI_RESET << " (" << ANSI_TYPE << type << ANSI_RESET << ")" << '\n';