mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
const ness
This commit is contained in:
parent
1df71f1e9d
commit
72b2a7382a
@ -476,7 +476,7 @@ parse_int_string(UC const *p, UC const *pend, T &value, int base) {
|
|||||||
|
|
||||||
UC const *const first = p;
|
UC const *const first = p;
|
||||||
|
|
||||||
bool negative = (*p == UC('-'));
|
bool const negative = (*p == UC('-'));
|
||||||
if (!std::is_signed<T>::value && negative) {
|
if (!std::is_signed<T>::value && negative) {
|
||||||
answer.ec = std::errc::invalid_argument;
|
answer.ec = std::errc::invalid_argument;
|
||||||
answer.ptr = first;
|
answer.ptr = first;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user