diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc index f291b05260..986395259f 100644 --- a/src/ia32/assembler-ia32.cc +++ b/src/ia32/assembler-ia32.cc @@ -1501,7 +1501,7 @@ void Assembler::jmp(Handle code, RelocInfo::Mode rmode) { void Assembler::j(Condition cc, Label* L, Label::Distance distance) { EnsureSpace ensure_space(this); - ASSERT(0 <= cc && cc < 16); + ASSERT(0 <= cc && static_cast(cc) < 16); if (L->is_bound()) { const int short_size = 2; const int long_size = 6; @@ -1533,7 +1533,7 @@ void Assembler::j(Condition cc, Label* L, Label::Distance distance) { void Assembler::j(Condition cc, byte* entry, RelocInfo::Mode rmode) { EnsureSpace ensure_space(this); - ASSERT((0 <= cc) && (cc < 16)); + ASSERT((0 <= cc) && (static_cast(cc) < 16)); // 0000 1111 1000 tttn #32-bit disp. EMIT(0x0F); EMIT(0x80 | cc);