mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 23:20:55 +00:00
parent
cf771c10d6
commit
1e5c08bb1a
@ -81,7 +81,7 @@ void Genode::print(Output &output, Hex const &value)
|
|||||||
if (value.prefix == Hex::PREFIX)
|
if (value.prefix == Hex::PREFIX)
|
||||||
output.out_string("0x");
|
output.out_string("0x");
|
||||||
|
|
||||||
size_t const pad_len = value.pad ? value.digits : 0;
|
size_t const pad_len = (value.pad == Hex::PAD) ? value.digits : 0;
|
||||||
|
|
||||||
out_unsigned<unsigned long>(value.value, 16, pad_len,
|
out_unsigned<unsigned long>(value.value, 16, pad_len,
|
||||||
[&] (char c) { output.out_char(c); });
|
[&] (char c) { output.out_char(c); });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user