diff options
Diffstat (limited to 'src/stdlib/labs.c')
| -rw-r--r-- | src/stdlib/labs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stdlib/labs.c b/src/stdlib/labs.c index 692fd8d0..55df7727 100644 --- a/src/stdlib/labs.c +++ b/src/stdlib/labs.c @@ -9,13 +9,15 @@ long int labs(long int j) SIGNAL_SAFE(0); if (j == LONG_MIN) { - /* undefined */ + UNDEFINED("In call to labs(): The absolute value of LONG_MIN is not representable as a long int"); return LONG_MIN; } return j < 0 ? -j : j; } +CHECK_1(long int, 0, labs, long int) + /*** computes the absolute value of ARGUMENT(j). ***/ |
