From da8c267316512436ba19f28fa42510be305093f6 Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 30 Oct 2014 16:03:47 +0100 Subject: ICE-5804 - Warnings when building with GCC (Eliminate C style casts) --- cpp/src/Slice/PythonUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/Slice/PythonUtil.cpp') diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index 21f8ccd2f9c..c403de42ad5 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -2318,7 +2318,7 @@ Slice::Python::generate(const UnitPtr& un, bool all, bool checksum, const vector str.fill('0'); for(vector::const_iterator q = p->second.begin(); q != p->second.end(); ++q) { - str << (int)(*q); + str << static_cast(*q); } out << str.str() << "\""; } -- cgit v1.2.3