diff options
author | Randolf J <34705014+jun-sheaf@users.noreply.github.com> | 2022-10-07 13:02:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 13:02:41 +0200 |
commit | 02f0ab209314000bc1c8fdff0d60378995316f9c (patch) | |
tree | f5d1cc73798f9b87c157449a0ce6bc527f977885 | |
parent | 8317b9a01cbc32594ad4bf971709c97cb13ec921 (diff) |
Update charconv.cc
-rw-r--r-- | absl/strings/charconv.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/strings/charconv.cc b/absl/strings/charconv.cc index c08623c4..25ac4499 100644 --- a/absl/strings/charconv.cc +++ b/absl/strings/charconv.cc @@ -347,7 +347,8 @@ bool HandleEdgeCase(const strings_internal::ParsedFloat& input, bool negative, // https://bugs.llvm.org/show_bug.cgi?id=37778 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86113 constexpr ptrdiff_t kNanBufferSize = 128; -#if defined(__GNUC__) || (defined(__clang__) && __clang_major__ < 7) +#if (defined(__GNUC__) && !defined(__clang__)) || \ + (defined(__clang__) && __clang_major__ < 7) volatile char n_char_sequence[kNanBufferSize]; #else char n_char_sequence[kNanBufferSize]; |