From d1b7c66fab777fe72e5cf77fd284218e2080b017 Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 21 Jun 2019 22:22:14 +0200 Subject: Enable -Wconversion with clang - Close #363 --- cpp/src/IceGrid/FileCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/IceGrid/FileCache.cpp') diff --git a/cpp/src/IceGrid/FileCache.cpp b/cpp/src/IceGrid/FileCache.cpp index a93bca5440d..565e7896e62 100644 --- a/cpp/src/IceGrid/FileCache.cpp +++ b/cpp/src/IceGrid/FileCache.cpp @@ -174,7 +174,7 @@ FileCache::read(const string& file, Ice::Long offset, int size, Ice::Long& newOf if(totalSize + 5 < size) { // There's some room left for a part of the string, return a partial string - line = line.substr(0, size - totalSize - 5); + line = line.substr(0, static_cast(size - totalSize - 5)); lines.push_back(line); newOffset += line.size(); } -- cgit v1.2.3