authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-02-25 16:36:18-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-02-25 16:36:18-05:00
log39605a79656802c1c0986286910b1536ac7a25a9
treee313fbee1126ece9945a9e20f1d599facfe04dd8
parent7b8c5578c6c174893c5dd08e89cf3b3492ae065f
signaturelock-open Commit is signed but in an unrecognized format.

delete incorrect TODO comment

The code path is tested by behavior tests. Thanks to various contributors, but mostly Marc Tiehuis, bigint.cpp now has full coverage. closes #405

1 files changed, 0 insertions(+), 1 deletions(-)

src/bigint.cpp-1
......@@ -1665,7 +1665,6 @@ int64_t bigint_as_signed(const BigInt *bigint) {
16651665 return 0;
16661666 } else if (bigint->digit_count == 1) {
16671667 if (bigint->is_negative) {
1668 // TODO this code path is untested
16691668 if (bigint->data.digit <= 9223372036854775808ULL) {
16701669 return (-((int64_t)(bigint->data.digit - 1))) - 1;
16711670 } else {