Index: src/arm64/simulator-arm64.cc |
diff --git a/src/arm64/simulator-arm64.cc b/src/arm64/simulator-arm64.cc |
index 0d2ba3a2978f0790f3cdcc1ac98b627cda1d8c6c..06fd634d2281634c4d1231c94d794917982dcd86 100644 |
--- a/src/arm64/simulator-arm64.cc |
+++ b/src/arm64/simulator-arm64.cc |
@@ -1065,7 +1065,7 @@ void Simulator::PrintSystemRegisters(bool print_all) { |
"0b10 (Round towards Minus Infinity)", |
"0b11 (Round towards Zero)" |
}; |
- ASSERT(fpcr().RMode() <= (sizeof(rmode) / sizeof(rmode[0]))); |
+ ASSERT(fpcr().RMode() < ARRAY_SIZE(rmode)); |
fprintf(stream_, "# %sFPCR: %sAHP:%d DN:%d FZ:%d RMode:%s%s\n", |
clr_flag_name, |
clr_flag_value, |