summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-09-24 16:13:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-09-24 16:13:52 +0200
commitf77b29a664221063ea79b2da08c8085874e33b64 (patch)
tree6ea0f61860a6b1b2f4d85736ef680b5f23ac5141
parentcf31570dffa4ebfbb5544f5a5ccdcbae559fb524 (diff)
OutputStream: Do not prefix hex numbers with 0x
-rw-r--r--src/os/object/outputstream.cc5
1 files changed, 3 insertions, 2 deletions
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;
}