diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-02-18 23:32:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-02-18 23:32:45 +0000 |
commit | c795123cd575be3d593900984146efda0302e78e (patch) | |
tree | 8bbc14cc5d759119b19b9b91734ac7637818a78e /lib | |
parent | 0ec370e6fbeb3becb06801a4bf8601ae1fe08d7b (diff) |
fixed a long long mistake
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mprintf.c | 5 |
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 |