Index: src/base/flags.h |
diff --git a/src/base/flags.h b/src/base/flags.h |
index 3f4dfe77d60594fc57a497fc3f57edb456cccfe1..060dba818acadfa81ed13cb5220d7229220c5b54 100644 |
--- a/src/base/flags.h |
+++ b/src/base/flags.h |
@@ -26,8 +26,9 @@ class Flags FINAL { |
typedef S mask_type; |
Flags() : mask_(0) {} |
- Flags(flag_type flag) : mask_(flag) {} // NOLINT(runtime/explicit) |
- explicit Flags(mask_type mask) : mask_(mask) {} |
+ Flags(flag_type flag) // NOLINT(runtime/explicit) |
+ : mask_(static_cast<S>(flag)) {} |
+ explicit Flags(mask_type mask) : mask_(static_cast<S>(mask)) {} |
Flags& operator&=(const Flags& flags) { |
mask_ &= flags.mask_; |