From f1888b39d43dfbf655b7375dc6fb29c915132842 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Sat, 21 Aug 2021 10:12:48 +0300 Subject: [PATCH] Fix data logging type casting --- worker/include/Logger.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/include/Logger.hpp b/worker/include/Logger.hpp index 4f3036a818..c35f33224c 100644 --- a/worker/include/Logger.hpp +++ b/worker/include/Logger.hpp @@ -345,7 +345,7 @@ class Logger { \ if (bufferDataLen != 0) \ { \ - Logger::channel->SendLog(Logger::buffer, bufferDataLen); \ + Logger::channel->SendLog(Logger::buffer, static_cast(bufferDataLen)); \ bufferDataLen = 0; \ } \ int loggerWritten = std::snprintf(Logger::buffer + bufferDataLen, Logger::bufferSize, "X%06X ", static_cast(i)); \ @@ -355,7 +355,7 @@ class Logger bufferDataLen += loggerWritten; \ } \ if (bufferDataLen != 0) \ - Logger::channel->SendLog(Logger::buffer, bufferDataLen); \ + Logger::channel->SendLog(Logger::buffer, static_cast(bufferDataLen)); \ } \ while (false)