diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-09-24 16:13:52 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-09-24 16:13:52 +0200 |
commit | f77b29a664221063ea79b2da08c8085874e33b64 (patch) | |
tree | 6ea0f61860a6b1b2f4d85736ef680b5f23ac5141 /src | |
parent | cf31570dffa4ebfbb5544f5a5ccdcbae559fb524 (diff) |
OutputStream: Do not prefix hex numbers with 0x
Diffstat (limited to 'src')
-rw-r--r-- | src/os/object/outputstream.cc | 5 |
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; } |