From 1901a1c7d402cd4fe1eaf3a9107fe6d56348acb5 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 12 Sep 2013 09:54:27 +0200 Subject: Fix MSVC-64 warnings about size_t -> int truncations in C++-lib. Change-Id: Ibe6f41ac15df1ec685b0d0766ff568abf6f3ae7e Reviewed-by: Nikolai Kosjar --- src/libs/3rdparty/cplusplus/Control.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libs/3rdparty/cplusplus/Control.cpp') diff --git a/src/libs/3rdparty/cplusplus/Control.cpp b/src/libs/3rdparty/cplusplus/Control.cpp index e274a209060..42028ae4ed6 100644 --- a/src/libs/3rdparty/cplusplus/Control.cpp +++ b/src/libs/3rdparty/cplusplus/Control.cpp @@ -584,7 +584,7 @@ const Identifier *Control::identifier(const char *chars, unsigned size) const Identifier *Control::identifier(const char *chars) { - unsigned length = std::strlen(chars); + const unsigned length = unsigned(std::strlen(chars)); return identifier(chars, length); } @@ -611,7 +611,7 @@ const StringLiteral *Control::stringLiteral(const char *chars, unsigned size) const StringLiteral *Control::stringLiteral(const char *chars) { - unsigned length = std::strlen(chars); + const unsigned length = unsigned(std::strlen(chars)); return stringLiteral(chars, length); } @@ -620,7 +620,7 @@ const NumericLiteral *Control::numericLiteral(const char *chars, unsigned size) const NumericLiteral *Control::numericLiteral(const char *chars) { - unsigned length = std::strlen(chars); + const unsigned length = unsigned(std::strlen(chars)); return numericLiteral(chars, length); } -- cgit v1.2.3