aboutsummaryrefslogtreecommitdiffstats
path: root/llabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'llabs.c')
-rw-r--r--llabs.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/llabs.c b/llabs.c
index 6aa6362..539a0c4 100644
--- a/llabs.c
+++ b/llabs.c
@@ -2,6 +2,16 @@
#include "internal.h"
+void
+liberror_llabs_failed(long long int i)
+{
+ liberror_set_error_errno("The absolute value of largest negative integer "
+ "cannot be represented as a signed integer",
+ "llabs", EOVERFLOW);
+ (void) i;
+}
+
+
long long int
liberror_llabs(long long int i)
{
@@ -11,9 +21,7 @@ liberror_llabs(long long int i)
if (i != LLONG_MIN)
return llabs(i);
liberror_save_backtrace(NULL);
- liberror_set_error_errno("The absolute value of largest negative integer "
- "cannot be represented as a signed integer",
- "llabs", EOVERFLOW);
+ liberror_llabs(i);
return i;
#endif
}