summaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorGravatar Randolf J <34705014+jun-sheaf@users.noreply.github.com>2022-10-02 17:12:31 +0200
committerGravatar GitHub <noreply@github.com>2022-10-02 17:12:31 +0200
commitd113dec8203116a12eb1a2903b5a01e7de604b52 (patch)
treee7ccc13fa99a5fcf17e353b4129cbc52e0274205 /absl
parent7f3c0d781134d25b24e0b55346482a2d366bf59b (diff)
Update charconv.cc
Diffstat (limited to 'absl')
-rw-r--r--absl/strings/charconv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/strings/charconv.cc b/absl/strings/charconv.cc
index 37d6f9f0..db2b392e 100644
--- a/absl/strings/charconv.cc
+++ b/absl/strings/charconv.cc
@@ -347,7 +347,7 @@ bool HandleEdgeCase(const strings_internal::ParsedFloat& input, bool negative,
} else {
ptrdiff_t nan_size = input.subrange_end - input.subrange_begin;
nan_size = std::min(nan_size, kNanBufferSize - 1);
- std::copy_n(input.subrange_begin, nan_size, n_char_sequence);
+ std::copy_n(input.subrange_begin, nan_size, const_cast<char *>(n_char_sequence));
n_char_sequence[nan_size] = '\0';
}
char* nan_argument = const_cast<char*>(n_char_sequence);