diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2013-10-21 19:18:16 +0200 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2013-10-21 19:58:49 +0200 |
commit | a80fe4b1d24dff993442a45e63948eeb9e6a3962 (patch) | |
tree | c8e4a44e8f1228f2cc200805e5915c7a1fd08c9f /Source/cmGeneratorExpressionLexer.h | |
parent | bf02e750796c6b42b0e9d39ba322cd5191489a0e (diff) | |
download | cmake-a80fe4b1d24dff993442a45e63948eeb9e6a3962.tar.gz |
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/cmGeneratorExpressionLexer.h')
-rw-r--r-- | Source/cmGeneratorExpressionLexer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionLexer.h b/Source/cmGeneratorExpressionLexer.h index 5f16712fbe..83d661de13 100644 --- a/Source/cmGeneratorExpressionLexer.h +++ b/Source/cmGeneratorExpressionLexer.h @@ -19,7 +19,7 @@ //---------------------------------------------------------------------------- struct cmGeneratorExpressionToken { - cmGeneratorExpressionToken(unsigned type, const char *c, unsigned l) + cmGeneratorExpressionToken(unsigned type, const char *c, size_t l) : TokenType(type), Content(c), Length(l) { } @@ -32,7 +32,7 @@ struct cmGeneratorExpressionToken }; unsigned TokenType; const char *Content; - unsigned Length; + size_t Length; }; /** \class cmGeneratorExpressionLexer |