Guard against min/max macros in tests too

This commit is contained in:
Christopher Warrington
2017-09-05 18:27:02 -07:00
parent 6e38649ec6
commit e4c0ecf86b
3 changed files with 4 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ TEST(Strtod, CheckApproximationCase) {
}
// Remove common power of two factor from all three scaled values
int common_Exp2 = std::min(dS_Exp2, std::min(bS_Exp2, hS_Exp2));
int common_Exp2 = (std::min)(dS_Exp2, (std::min)(bS_Exp2, hS_Exp2));
dS_Exp2 -= common_Exp2;
bS_Exp2 -= common_Exp2;
hS_Exp2 -= common_Exp2;