Skip to content

Commit 35c1169

Browse files
committed
OrcLib: Utils: Guid: fix ToString
1 parent c8268fc commit 35c1169

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OrcLib/Utils/Guid.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ void ToString(const GUID& guid, OutputIt out)
125125

126126
if constexpr (std::is_same_v<value_type, char>)
127127
{
128-
fmt::format_to(out, "{:X}-{:X}-{:X}-", guid.Data1, guid.Data2, guid.Data3);
128+
fmt::format_to(out, "{:08X}-{:04X}-{:04X}-", guid.Data1, guid.Data2, guid.Data3);
129129
}
130130
else if constexpr (std::is_same_v<value_type, wchar_t>)
131131
{
132-
fmt::format_to(out, L"{:X}-{:X}-{:X}-", guid.Data1, guid.Data2, guid.Data3);
132+
fmt::format_to(out, L"{:08X}-{:04X}-{:04X}-", guid.Data1, guid.Data2, guid.Data3);
133133
}
134134
else
135135
{

0 commit comments

Comments
 (0)