Add support for passing -0.0 to vvp.

This commit is contained in:
Cary R 2010-11-06 12:18:38 -07:00 committed by Stephen Williams
parent a52c066f66
commit 33f53c3ee4
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,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;
}