Preserve sign of negative zero
This commit is contained in:
parent
de415b2f03
commit
f963322076
|
|
@ -202,9 +202,9 @@ static void draw_realnum_real(ivl_expr_t expr)
|
|||
return;
|
||||
}
|
||||
|
||||
if (value < 0) {
|
||||
if (signbit(value)) {
|
||||
sign = 0x4000;
|
||||
value *= -1;
|
||||
value = -value;
|
||||
}
|
||||
|
||||
fract = frexp(value, &expo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue