Skip to content

Commit

Permalink
Merge pull request #240 from Flamefire/superflous-exp
Browse files Browse the repository at this point in the history
Remove superflous assignment to exponent argument in parser
  • Loading branch information
mborland authored Jan 2, 2025
2 parents 26359d7 + 9e4975c commit 41caca1
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 41caca1

Please sign in to comment.