From ff69e629547c159e13cdac63d1e97c6180915e86 Mon Sep 17 00:00:00 2001
From: "Dmitry Yu. Naumov" <github@naumov.de>
Date: Mon, 9 Jul 2018 18:40:36 +0200
Subject: [PATCH] [BL] Change cast type in writeValueBinary.

The reinterpret cast seems to more appropriate in context
of writing of binary values to a stream.
---
 BaseLib/FileTools.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BaseLib/FileTools.h b/BaseLib/FileTools.h
index fd328eb0075..c74ed9b90f9 100644
--- a/BaseLib/FileTools.h
+++ b/BaseLib/FileTools.h
@@ -38,7 +38,7 @@ bool IsFileExisting(const std::string &strFilename);
  */
 template <typename T> void writeValueBinary(std::ostream &out, T const& val)
 {
-    out.write(static_cast<const char*>(&val), sizeof(T));
+    out.write(reinterpret_cast<const char*>(&val), sizeof(T));
 }
 
 template <typename T>
-- 
GitLab