V0.9: Add support for passing -0.0 to vvp.

This commit is contained in:
Cary R 2010-11-06 12:20:50 -07:00 committed by Stephen Williams
parent 3612e53f7c
commit 9a826152a6
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ char* draw_Cr_to_string(double value)
}
sign = 0;
if (value < 0) {
if (value < 0.0 || (value == 0.0 && 1.0/value < 0.0)) {
sign = 0x4000;
value *= -1;
}