OSDN Git Service

Fix signed/unsigned comparison warning.
authorNicolas Capens <capn@google.com>
Wed, 18 Jan 2017 21:57:52 +0000 (16:57 -0500)
committerJim Stichnoth <stichnot@chromium.org>
Thu, 19 Jan 2017 00:13:47 +0000 (00:13 +0000)
Change-Id: Idf81fb96dd32df8f96b5bc688bdce290265ff372
Reviewed-on: https://chromium-review.googlesource.com/430230
Reviewed-by: Jim Stichnoth <stichnot@chromium.org>
src/IceOperand.h

index 4b7cdfe..7e55ac0 100644 (file)
@@ -501,7 +501,7 @@ public:
   }
   // Define NoRegisterValue as an enum value so that it can be used as an
   // 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 hasNoValue() const { return !hasValue(); }