From e5e59d29676be79d4938e8871b46f12f6a5fca66 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 18 Mar 2009 00:00:08 +0100 Subject: [PATCH] GET_NUM_DIGITS: Evaluate macro parameter only once. --- aft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aft.c b/aft.c index 7bfad504..daa9c730 100644 --- a/aft.c +++ b/aft.c @@ -741,7 +741,7 @@ static int get_local_time(uint64_t *seconds, char *buf, size_t size, #define GET_NUM_DIGITS(x, num) { \ typeof((x)) _tmp = PARA_ABS(x); \ *num = 1; \ - if ((x)) \ + if ((_tmp)) \ while ((_tmp) > 9) { \ (_tmp) /= 10; \ (*num)++; \ -- 2.39.2