| author | |
| committer | |
| log | 39605a79656802c1c0986286910b1536ac7a25a9 |
| tree | e313fbee1126ece9945a9e20f1d599facfe04dd8 |
| parent | 7b8c5578c6c174893c5dd08e89cf3b3492ae065f |
| signature |
The code path is tested by behavior tests.
Thanks to various contributors, but mostly Marc Tiehuis,
bigint.cpp now has full coverage.
closes #4051 files changed, 0 insertions(+), 1 deletions(-)
src/bigint.cpp-1| ... | ... | @@ -1665,7 +1665,6 @@ int64_t bigint_as_signed(const BigInt *bigint) { |
| 1665 | 1665 | return 0; |
| 1666 | 1666 | } else if (bigint->digit_count == 1) { |
| 1667 | 1667 | if (bigint->is_negative) { |
| 1668 | // TODO this code path is untested | |
| 1669 | 1668 | if (bigint->data.digit <= 9223372036854775808ULL) { |
| 1670 | 1669 | return (-((int64_t)(bigint->data.digit - 1))) - 1; |
| 1671 | 1670 | } else { |