diff options
author | Tomáš Kopal <Tomas.Kopal@eccam.com> | 2021-03-17 11:18:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 12:18:33 +0200 |
commit | 757e418090e1038b183d3776aa8a3c55260369ca (patch) | |
tree | f53db26063920be1299776ae138140f9e94aa655 /daemon | |
parent | de2ac5a34b1212c0b024dd9676816e19ea809485 (diff) |
Rename abs to ABS to avoid clash with standard definitions. Fixes #10353. (#10354)
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/unit_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/unit_test.c b/daemon/unit_test.c index e6a69e354d..9a17aa7622 100644 --- a/daemon/unit_test.c +++ b/daemon/unit_test.c @@ -371,7 +371,7 @@ int unit_test_str2ld() { return -1; } } - else if(mine != sys && abs(mine-sys) > 0.000001) { + else if(mine != sys && ABS(mine-sys) > 0.000001) { fprintf(stderr, "Value '%s' is parsed as %" LONG_DOUBLE_MODIFIER ", but system believes it is %" LONG_DOUBLE_MODIFIER ", delta %" LONG_DOUBLE_MODIFIER ".\n", values[i], mine, sys, sys-mine); return -1; } |