]> sjero.net Git - wget/commitdiff
[svn] Renamed OVERFLOW and UNDERFLOW to INT64_OVERFLOW and INT64_UNDERFLOW.
authorhniksic <devnull@localhost>
Thu, 7 Apr 2005 23:21:24 +0000 (16:21 -0700)
committerhniksic <devnull@localhost>
Thu, 7 Apr 2005 23:21:24 +0000 (16:21 -0700)
src/mswindows.c

index 0d083e2982b8bf1c2033dc73850f00fb236edca3..74623445c4c0125fa54633e9b24669fa7b98561f 100644 (file)
@@ -115,8 +115,8 @@ char_value (char c, int base)
 __int64
 str_to_int64 (const char *nptr, char **endptr, int base)
 {
-#define OVERFLOW 9223372036854775807I64
-#define UNDERFLOW (-OVERFLOW - 1)
+#define INT64_OVERFLOW 9223372036854775807I64
+#define INT64_UNDERFLOW (-INT64_OVERFLOW - 1)
 
   __int64 result = 0;
   int negative;
@@ -169,7 +169,7 @@ str_to_int64 (const char *nptr, char **endptr, int base)
          __int64 newresult = base * result + val;
          if (newresult < result)
            {
-             result = OVERFLOW;
+             result = INT64_OVERFLOW;
              errno = ERANGE;
              break;
            }
@@ -185,7 +185,7 @@ str_to_int64 (const char *nptr, char **endptr, int base)
          __int64 newresult = base * result - val;
          if (newresult > result)
            {
-             result = UNDERFLOW;
+             result = INT64_UNDERFLOW;
              errno = ERANGE;
              break;
            }