summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluator.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2013-10-21 17:18:16 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2013-10-21 17:58:49 (GMT)
commita80fe4b1d24dff993442a45e63948eeb9e6a3962 (patch)
treec8e4a44e8f1228f2cc200805e5915c7a1fd08c9f /Source/cmGeneratorExpressionEvaluator.cxx
parentbf02e750796c6b42b0e9d39ba322cd5191489a0e (diff)
downloadCMake-a80fe4b1d24dff993442a45e63948eeb9e6a3962.zip
CMake-a80fe4b1d24dff993442a45e63948eeb9e6a3962.tar.gz
CMake-a80fe4b1d24dff993442a45e63948eeb9e6a3962.tar.bz2
use size_t for GeneratorExpressionContent::ContentLength to fix some warnings
CMake/Source/cmGeneratorExpressionParser.cxx: In member function ‘void cmGeneratorExpressionParser::ParseGeneratorExpression(std::vector<cmGeneratorExpressionEvaluator*>&)’: CMake/Source/cmGeneratorExpressionParser.cxx:116:55: warning: conversion to ‘unsigned int’ from ‘long int’ may alter its value [-Wconversion] CMake/Source/cmGeneratorExpressionParser.cxx:240:39: warning: conversion to ‘int’ from ‘long int’ may alter its value [-Wconversion]
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r--Source/cmGeneratorExpressionEvaluator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx
index 7fd0fdc..dfd995e 100644
--- a/Source/cmGeneratorExpressionEvaluator.cxx
+++ b/Source/cmGeneratorExpressionEvaluator.cxx
@@ -1446,7 +1446,7 @@ cmGeneratorExpressionNode* GetNode(const std::string &identifier)
//----------------------------------------------------------------------------
GeneratorExpressionContent::GeneratorExpressionContent(
const char *startContent,
- unsigned int length)
+ size_t length)
: StartContent(startContent), ContentLength(length)
{