Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index fabca67062fab264b5c9dff0192c308c18e67b9f..9320fbaecc8a7d7c298daee6d69b160a8f939cda 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -1288,7 +1288,8 @@ bool Simulator::set_fcsr_round_error(double original, double rounded) { |
set_fcsr_bit(kFCSRInexactFlagBit, true); |
} |
- if (rounded < DBL_MIN && rounded > -DBL_MIN && rounded != 0) { |
+ if (rounded < std::numeric_limits<double>::min() && |
+ rounded > -std::numeric_limits<double>::min() && rounded != 0) { |
set_fcsr_bit(kFCSRUnderflowFlagBit, true); |
ret = true; |
} |