Commit 5c4d677c by Nicolas Capens Committed by Jim Stichnoth

Fix signed/unsigned comparison warning.

Change-Id: Idf81fb96dd32df8f96b5bc688bdce290265ff372 Reviewed-on: https://chromium-review.googlesource.com/430230Reviewed-by: 's avatarJim Stichnoth <stichnot@chromium.org>
parent dbf81e0c
...@@ -501,7 +501,7 @@ public: ...@@ -501,7 +501,7 @@ public:
} }
// Define NoRegisterValue as an enum value so that it can be used as an // Define NoRegisterValue as an enum value so that it can be used as an
// argument for the public ctor if desired. // argument for the public ctor if desired.
enum { NoRegisterValue = std::numeric_limits<BaseType>::max() }; enum : BaseType { NoRegisterValue = std::numeric_limits<BaseType>::max() };
bool hasValue() const { return Value != NoRegisterValue; } bool hasValue() const { return Value != NoRegisterValue; }
bool hasNoValue() const { return !hasValue(); } bool hasNoValue() const { return !hasValue(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment