hex float parsing: solve another case
this works now: 0x1.edcb34a235253948765432134674fp-1
This commit is contained in:
@@ -365,6 +365,9 @@ static void end_float_token(Tokenize *t) {
|
||||
bigint_init_unsigned(&shift_bigint, -shift);
|
||||
BigInt shifted_significand;
|
||||
bigint_shr(&shifted_significand, &t->significand, &shift_bigint);
|
||||
if (t->exponent_in_bin_or_dec == -1) {
|
||||
bigint_incr(&shifted_significand);
|
||||
}
|
||||
bigint_write_twos_complement(&shifted_significand, (uint8_t*) f_bits.repr, 128, false);
|
||||
} else {
|
||||
uint64_t sig_bits[2] = {0, 0};
|
||||
|
||||
Reference in New Issue
Block a user