aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/formatter.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/formatter.h b/src/formatter.h
index 23c738a..7bf854b 100644
--- a/src/formatter.h
+++ b/src/formatter.h
@@ -241,10 +241,9 @@ namespace Bu
241 Formatter &operator<<( Formatter &rOut, bool b ); 241 Formatter &operator<<( Formatter &rOut, bool b );
242 242
243 template<typename type> 243 template<typename type>
244 Formatter &operator<<( Formatter &rOut, const type *p ) 244 Formatter &operator<<( Formatter &rOut, type * const &p )
245 { 245 {
246 rOut << (ptrdiff_t)(p); 246 return rOut << "0x" << Fmt::hex(sizeof(ptrdiff_t)*2) << (ptrdiff_t)(p);
247 return rOut;
248 } 247 }
249}; 248};
250 249