Skip to content

Commit

Permalink
OrcLib: JSONOutputWriter: fix inHex for StructuredOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
jgautier-anssi authored and fabienfl-orc committed Jul 31, 2020
1 parent ed41d2f commit bca92e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/OrcLib/JSONOutputWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ HRESULT Orc::StructuredOutput::JSON::Writer<_RapidWriter, _Ch>::Write(ULONG32 dw
if (bInHex)
{
StructuredOutput::Writer::_Buffer buffer;
WriteBuffer(buffer, dwValue);
WriteBuffer(buffer, dwValue, bInHex);
rapidWriter.String(buffer.get());
}
else
Expand All @@ -198,7 +198,7 @@ HRESULT Orc::StructuredOutput::JSON::Writer<_RapidWriter, _Ch>::Write(LONG32 uiV
if (bInHex)
{
StructuredOutput::Writer::_Buffer buffer;
WriteBuffer(buffer, uiValue);
WriteBuffer(buffer, uiValue, bInHex);
rapidWriter.String(buffer.get());
}
else
Expand Down Expand Up @@ -226,7 +226,7 @@ HRESULT Orc::StructuredOutput::JSON::Writer<_RapidWriter, _Ch>::Write(ULONG64 ul
if (bInHex)
{
StructuredOutput::Writer::_Buffer buffer;
WriteBuffer(buffer, ullValue);
WriteBuffer(buffer, ullValue, bInHex);
rapidWriter.String(buffer.get());
}
else
Expand All @@ -241,7 +241,7 @@ HRESULT Orc::StructuredOutput::JSON::Writer<_RapidWriter, _Ch>::Write(LONG64 llV
if (bInHex)
{
StructuredOutput::Writer::_Buffer buffer;
WriteBuffer(buffer, llValue);
WriteBuffer(buffer, llValue, bInHex);
rapidWriter.String(buffer.get());
}
else
Expand Down Expand Up @@ -270,7 +270,7 @@ HRESULT Orc::StructuredOutput::JSON::Writer<_RapidWriter, _Ch>::Write(LARGE_INTE
if (bInHex)
{
StructuredOutput::Writer::_Buffer buffer;
WriteBuffer(buffer, ullValue);
WriteBuffer(buffer, ullValue, bInHex);
rapidWriter.String(buffer.get());
}
else
Expand Down

0 comments on commit bca92e2

Please sign in to comment.