projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
GET_NUM_DIGITS: Evaluate macro parameter only once.
[paraslash.git]
/
aft.c
diff --git
a/aft.c
b/aft.c
index 7bfad504f04b8626ea8fbd436ece8dcef34124ff..daa9c730484437f58b56dca863d9d0b617d5c418 100644
(file)
--- 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)++; \