Skip to content

Commit

Permalink
Remove superflous assignment to exponent argument in parser
Browse files Browse the repository at this point in the history
The exponent will be parsed later, the value assigned at this position
is meaningless or even wrong.
  • Loading branch information
Flamefire committed Dec 27, 2024
1 parent 8fbdb8a commit 9e4975c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/boost/charconv/detail/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ inline from_chars_result parser(const char* first, const char* last, bool& sign,
return {first, std::errc::invalid_argument};
}

exponent = static_cast<Integer>(i - 1);
std::size_t offset = i;
bool round = false;
// If more digits are present than representable in the significand of the target type
Expand Down

0 comments on commit 9e4975c

Please sign in to comment.