/[jscoverage]/trunk/instrument-js.c
ViewVC logotype

Diff of /trunk/instrument-js.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 389 by siliconforks, Thu Oct 30 17:53:07 2008 UTC revision 390 by siliconforks, Thu Oct 30 17:53:39 2008 UTC
# Line 764  Line 764 
764      To keep the output simple, special-case zero.      To keep the output simple, special-case zero.
765      */      */
766      if (node->pn_dval == 0.0) {      if (node->pn_dval == 0.0) {
767        Stream_write_string(f, "0");        if (signbit(node->pn_dval)) {
768            Stream_write_string(f, "-0");
769          }
770          else {
771            Stream_write_string(f, "0");
772          }
773      }      }
774      else if (node->pn_dval == INFINITY) {      else if (node->pn_dval == INFINITY) {
775        Stream_write_string(f, "Number.POSITIVE_INFINITY");        Stream_write_string(f, "Number.POSITIVE_INFINITY");

Legend:
Removed from v.389  
changed lines
  Added in v.390

  ViewVC Help
Powered by ViewVC 1.1.24