From 68467da17d576a17e4ff96c60f581561ac0bbe88 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 2 Feb 2024 13:22:25 -0500 Subject: check for invalid integer conversions --- src/inttypes/imaxabs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inttypes/imaxabs.c') 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; } -- cgit v1.2.1