aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mprintf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c
index ffe645108..37332b2ce 100644
--- a/lib/mprintf.c
+++ b/lib/mprintf.c
@@ -699,9 +699,8 @@ static int dprintf_formatf(
#if SIZEOF_LONG_LONG
if(p->flags & FLAGS_LONGLONG) {
/* long long */
- num = p->data.lnum;
- is_neg = num < 0;
- num = is_neg ? (- num) : num;
+ is_neg = p->data.lnum < 0;
+ num = is_neg ? (- p->data.lnum) : p->data.lnum;
}
else
#endif