From 465ff81a5b62426b4e4e29ebcc411e43fcbb9aec Mon Sep 17 00:00:00 2001
From: Michael Davis <michael.davis@cern.ch>
Date: Wed, 24 Jan 2024 09:20:15 +0100
Subject: [PATCH] Undo incorrect cast

---
 common/log/FileLogger.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/log/FileLogger.cpp b/common/log/FileLogger.cpp
index 8fac8f84e4..2c78786e76 100644
--- a/common/log/FileLogger.cpp
+++ b/common/log/FileLogger.cpp
@@ -60,7 +60,7 @@ void FileLogger::writeMsgToUnderlyingLoggingSystem(std::string_view header, std:
 
   // Append the message to the file
   threading::MutexLocker lock(m_mutex);
-  cta::exception::Errnum::throwOnMinusOne(::write(m_fd, logLine.str().c_str(), static_cast<int>(logLine.str().size())), 
+  exception::Errnum::throwOnMinusOne(::write(m_fd, logLine.str().c_str(), logLine.str().size()), 
     "In FileLogger::writeMsgToUnderlyingLoggingSystem(): failed to write to file");
 }
 
-- 
GitLab