From f77b29a664221063ea79b2da08c8085874e33b64 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 24 Sep 2018 16:13:52 +0200 Subject: OutputStream: Do not prefix hex numbers with 0x --- src/os/object/outputstream.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/os/object/outputstream.cc b/src/os/object/outputstream.cc index f257fa5..1ce260e 100644 --- a/src/os/object/outputstream.cc +++ b/src/os/object/outputstream.cc @@ -59,8 +59,9 @@ OutputStream & OutputStream::operator<<(unsigned long long number) put('0'); break; case 16: - put('0'); - put('x'); + if (number < 16) { + put('0'); + } break; } -- cgit v1.2.3