From 32d98969fb8bd36ac6755fb30c61aa41d450493e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 5 Aug 2010 21:40:04 +0200 Subject: [PATCH] suppress visual studio warnings about loosing data when calculating Token::progressValue --- lib/token.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/token.h b/lib/token.h index c8bf3cf08..5ebcb55fe 100644 --- a/lib/token.h +++ b/lib/token.h @@ -339,7 +339,7 @@ public: static void move(Token *srcStart, Token *srcEnd, Token *newLocation); /** Get progressValue */ - unsigned char progressValue() const + unsigned int progressValue() const { return _progressValue; } @@ -401,7 +401,12 @@ private: Token *_link; unsigned int _fileIndex; unsigned int _linenr; - unsigned char _progressValue; + + /** + * A value from 0-100 that provides a rough idea about where in the token + * list this token is located. + */ + unsigned int _progressValue; }; /// @}