Commit 34750cc7 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Use LL suffix for long long constants if the compiler supports it, to prevent

warnings.
parent af677c4e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -112,9 +112,9 @@ curlx_strtoll(const char *nptr, char **endptr, int base)
  }
  else {
    if (is_negative)
      value = 0x8000000000000000L;
      value = CURL_LLONG_MIN;
    else
      value = 0x7FFFFFFFFFFFFFFFL;
      value = CURL_LLONG_MAX;

    errno = ERANGE;
  }
+13 −5
Original line number Diff line number Diff line
@@ -58,5 +58,13 @@ curl_off_t curlx_strtoll(const char *nptr, char **endptr, int base);
#define curlx_strtoofft strtol
#endif

#ifdef HAVE_LL
#define CURL_LLONG_MIN 0x8000000000000000LL
#define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFLL
#else
#define CURL_LLONG_MIN 0x8000000000000000L
#define CURL_LLONG_MAX 0x7FFFFFFFFFFFFFFFL
#endif

#endif