diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-09-12 09:54:27 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-09-12 15:34:09 +0200 |
commit | 1901a1c7d402cd4fe1eaf3a9107fe6d56348acb5 (patch) | |
tree | bbaee31a20c7464b67f1203e3d2df7c26cfd527f /src/libs/3rdparty/cplusplus/Control.cpp | |
parent | 5c33742375219d86572dd989e3be07595a162a7b (diff) |
Fix MSVC-64 warnings about size_t -> int truncations in C++-lib.
Change-Id: Ibe6f41ac15df1ec685b0d0766ff568abf6f3ae7e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Control.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Control.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/3rdparty/cplusplus/Control.cpp b/src/libs/3rdparty/cplusplus/Control.cpp index e274a20906..42028ae4ed 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); } |