diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-04-03 09:43:05 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-03 21:02:32 +0200 |
commit | 7108acde8a2838261d6061e75f59c5ff58f37ad4 (patch) | |
tree | 495702d495585909833a199499e4a64aa85789b4 /src/tools/qdoc/tokenizer.cpp | |
parent | c6272b711fad1360c28bd85ed5be5bc3ca541b41 (diff) |
Fix warnings about truncations in constants.
Change-Id: I46872c5b2866454112092c1ec5efbfe15db5af33
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/qdoc/tokenizer.cpp')
-rw-r--r-- | src/tools/qdoc/tokenizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/qdoc/tokenizer.cpp b/src/tools/qdoc/tokenizer.cpp index c87764b934..7d9039e299 100644 --- a/src/tools/qdoc/tokenizer.cpp +++ b/src/tools/qdoc/tokenizer.cpp @@ -116,7 +116,7 @@ static int hashKword(const char *s, int len) static void insertKwordIntoHash(const char *s, int number) { - int k = hashKword(s, strlen(s)); + int k = hashKword(s, int(strlen(s))); while (kwordHashTable[k]) { if (++k == KwordHashTableSize) k = 0; @@ -166,7 +166,7 @@ int Tokenizer::getToken() yyCh = getChar(); } while (isalnum(yyCh) || yyCh == '_'); - int k = hashKword(yyLex, yyLexLen); + int k = hashKword(yyLex, int(yyLexLen)); for (;;) { int i = kwordHashTable[k]; if (i == 0) { |