We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fea49d commit 817bdabCopy full SHA for 817bdab
1 file changed
src/common/hex_and_handles.cpp
@@ -32,13 +32,13 @@
32
std::string Uint64ToHexString(uint64_t val) {
33
std::ostringstream oss;
34
oss << "0x";
35
- oss << std::hex << std::setw(16) << std::setfill('0') << val;
+ oss << std::hex << std::setw(sizeof(val) * 2) << std::setfill('0') << val;
36
return oss.str();
37
}
38
39
std::string Uint32ToHexString(uint32_t val) {
40
41
42
- oss << std::hex << std::setw(8) << std::setfill('0') << val;
43
44
0 commit comments