diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-01-14 13:36:55 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-01-14 14:09:57 +0100 |
commit | d593a276b1fbf72f713762361a6043b2d78e2e33 (patch) | |
tree | 917c0a92542c26da944df5b42419502014fd6a38 /src | |
parent | c980acc7c8942bc90f3f597d4f7125267cef59dc (diff) | |
download | qt-creator-d593a276b1fbf72f713762361a6043b2d78e2e33.tar.gz |
C++: Fix compile for MSVC2010
Change-Id: I3049efa29b80fecc6c9daa9e1eb967428d331bb2
Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Bind.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/3rdparty/cplusplus/Bind.cpp b/src/libs/3rdparty/cplusplus/Bind.cpp index 0911a7d646..d3996ba79c 100644 --- a/src/libs/3rdparty/cplusplus/Bind.cpp +++ b/src/libs/3rdparty/cplusplus/Bind.cpp @@ -499,7 +499,8 @@ void calculateConstantValue(const Symbol *symbol, EnumeratorDeclaration *e, Cont int constantValueAsInt = 0; if (stringLiteralToInt(constantValue, &constantValueAsInt)) { ++constantValueAsInt; - const std::string buffer = std::to_string(constantValueAsInt); + const std::string buffer + = std::to_string(static_cast<long long>(constantValueAsInt)); e->setConstantValue(control->stringLiteral(buffer.c_str(), unsigned(buffer.size()))); } |