From 6c7222e071ffe7d20c138faac0da1d708e0a7779 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 29 Aug 2021 15:12:57 +0100 Subject: Add -Wold-style-cast --- lib/compileTimeFormatter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compileTimeFormatter.h') diff --git a/lib/compileTimeFormatter.h b/lib/compileTimeFormatter.h index 647fb30..7d69d4b 100644 --- a/lib/compileTimeFormatter.h +++ b/lib/compileTimeFormatter.h @@ -344,7 +344,7 @@ namespace MyGrate { static inline void write(stream & s, Obj * const ptr, const Pn &... pn) { - s << std::showbase << std::hex << (long unsigned int)ptr; + s << std::showbase << std::hex << static_cast(ptr); s.copyfmt(std::ios(nullptr)); StreamWriter::next(s, pn...); } -- cgit v1.2.3