Skip to content

Commit

Permalink
msvc: check if _MSC_VER is defined (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathstuf authored and floitsch committed Feb 16, 2019
1 parent 87d21e3 commit 990c447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion double-conversion/double-conversion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ static double SignedZero(bool sign) {
// because it constant-propagated the radix and concluded that the last
// condition was always true. By moving it into a separate function the
// compiler wouldn't warn anymore.
#if _MSC_VER
#ifdef _MSC_VER
#pragma optimize("",off)
static bool IsDecimalDigitForRadix(int c, int radix) {
return '0' <= c && c <= '9' && (c - '0') < radix;
Expand Down

0 comments on commit 990c447

Please sign in to comment.