Index: src/compiler/js-operator.h |
diff --git a/src/compiler/js-operator.h b/src/compiler/js-operator.h |
index 6b60028d49c2e61e785cdbef2f16bcc6f9429f01..f2ab96213ff0d56fea7ba55ecbce21df571a4a90 100644 |
--- a/src/compiler/js-operator.h |
+++ b/src/compiler/js-operator.h |
@@ -23,7 +23,8 @@ class CallFunctionParameters final { |
public: |
CallFunctionParameters(size_t arity, CallFunctionFlags flags, |
LanguageMode language_mode) |
- : bit_field_(ArityField::encode(arity) | FlagsField::encode(flags) | |
+ : bit_field_(ArityField::encode(static_cast<unsigned>(arity)) | |
+ FlagsField::encode(flags) | |
LanguageModeField::encode(language_mode)) {} |
size_t arity() const { return ArityField::decode(bit_field_); } |