projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f23b292
)
changed abs to labs function to avoid warning
author
Friedrich Beckmann
<friedrich.beckmann@gmx.de>
Sun, 17 Sep 2017 07:16:23 +0000
(09:16 +0200)
committer
Friedrich Beckmann
<friedrich.beckmann@gmx.de>
Sun, 17 Sep 2017 07:23:48 +0000
(09:23 +0200)
During compilation on MacOS with clang I saw a warning about
a type mismatch for the abs function. I adapted the function
from abs to labs.
src/data/data-out.c
patch
|
blob
|
history
diff --git
a/src/data/data-out.c
b/src/data/data-out.c
index 157335cbf4a82d2d184eac78655613ee8ecd20cd..3f3611f00da2c032587c53971403e73ff502e35f 100644
(file)
--- 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 (
l
abs (exponent) > 999)
return false;
sprintf (cp, "%+04ld", exponent);
}