Skip to content

Commit

Permalink
Fix data logging type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Aug 25, 2021
1 parent d5a4a69 commit f1888b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/include/Logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class Logger
{ \
if (bufferDataLen != 0) \
{ \
Logger::channel->SendLog(Logger::buffer, bufferDataLen); \
Logger::channel->SendLog(Logger::buffer, static_cast<uint32_t>(bufferDataLen)); \
bufferDataLen = 0; \
} \
int loggerWritten = std::snprintf(Logger::buffer + bufferDataLen, Logger::bufferSize, "X%06X ", static_cast<unsigned int>(i)); \
Expand All @@ -355,7 +355,7 @@ class Logger
bufferDataLen += loggerWritten; \
} \
if (bufferDataLen != 0) \
Logger::channel->SendLog(Logger::buffer, bufferDataLen); \
Logger::channel->SendLog(Logger::buffer, static_cast<uint32_t>(bufferDataLen)); \
} \
while (false)

Expand Down

0 comments on commit f1888b3

Please sign in to comment.