summaryrefslogtreecommitdiff
path: root/src/inttypes/imaxabs.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-02-02 13:22:25 -0500
committerJakob Kaivo <jkk@ung.org>2024-02-02 13:22:25 -0500
commit68467da17d576a17e4ff96c60f581561ac0bbe88 (patch)
treeabd46d060469cd4438634c5c4ff660d2b1771c2c /src/inttypes/imaxabs.c
parent8a620a7c60e5745f5f38aaa1547a66a2d0dc9926 (diff)
check for invalid integer conversions
Diffstat (limited to 'src/inttypes/imaxabs.c')
-rw-r--r--src/inttypes/imaxabs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inttypes/imaxabs.c b/src/inttypes/imaxabs.c
index 9a49cfc9..04cb0440 100644
--- a/src/inttypes/imaxabs.c
+++ b/src/inttypes/imaxabs.c
@@ -8,7 +8,7 @@ intmax_t imaxabs(intmax_t j)
SIGNAL_SAFE(0);
if (j == INTMAX_MIN) {
- /* undefined behavior */
+ UNDEFINED("In call to imaxabs(): The absoluate value of INTMAX_MIN is not representable as an intmax_t");
return INTMAX_MIN;
}