diff --git a/httplib.h b/httplib.h index e2e6428..261790b 100644 --- a/httplib.h +++ b/httplib.h @@ -696,7 +696,7 @@ inline from_chars_result from_chars(const char *first, const char *last, return {first, std::errc::invalid_argument}; } - value = negative ? -result : result; + value = negative ? T(0) - result : result; return {p, std::errc{}}; }