From 53d5df8cef829ed9d79c81d0515de82be7675046 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Thu, 8 May 2014 14:16:43 +0200 Subject: [PATCH] Silence clang -Wsign-conversion warning with Token::setFlag. --- lib/token.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/token.h b/lib/token.h index a57429db7..5a72a1f0c 100644 --- a/lib/token.h +++ b/lib/token.h @@ -733,7 +733,7 @@ private: * @param flag_ flag to get state of * @return true if flag set or false in flag not set */ - bool getFlag(int flag_) const { + bool getFlag(unsigned int flag_) const { return bool((_flags & flag_) != 0); } @@ -742,7 +742,7 @@ private: * @param flag_ flag to set state * @param state_ new state of flag */ - void setFlag(int flag_, bool state_) { + void setFlag(unsigned int flag_, bool state_) { _flags = state_ ? _flags | flag_ : _flags & ~flag_; }