From 72b2a7382ad766d48a20190a6b1bbccecbd117f2 Mon Sep 17 00:00:00 2001 From: Anders Dalvander Date: Sun, 17 Nov 2024 16:22:05 +0100 Subject: [PATCH] const ness --- include/fast_float/ascii_number.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index c027435..a817b79 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -476,7 +476,7 @@ parse_int_string(UC const *p, UC const *pend, T &value, int base) { UC const *const first = p; - bool negative = (*p == UC('-')); + bool const negative = (*p == UC('-')); if (!std::is_signed::value && negative) { answer.ec = std::errc::invalid_argument; answer.ptr = first;