X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdata-out.c;h=3f3611f00da2c032587c53971403e73ff502e35f;hb=32ea29485bdd610b7d05dd806c5f06f68da0f0fe;hp=157335cbf4a82d2d184eac78655613ee8ecd20cd;hpb=f23b29294fe11981eca39360e9479ff25050b556;p=pspp diff --git a/src/data/data-out.c b/src/data/data-out.c index 157335cbf4..3f3611f00d 100644 --- a/src/data/data-out.c +++ b/src/data/data-out.c @@ -805,7 +805,7 @@ output_scientific (double number, const struct fmt_spec *format, { char *cp = strchr (p, 'E') + 1; long int exponent = strtol (cp, NULL, 10); - if (abs (exponent) > 999) + if (labs (exponent) > 999) return false; sprintf (cp, "%+04ld", exponent); }