projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7be92e
)
GET_NUM_DIGITS: Evaluate macro parameter only once.
author
Andre Noll
<maan@systemlinux.org>
Tue, 17 Mar 2009 23:00:08 +0000
(
00:00
+0100)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 17 Mar 2009 23:00:08 +0000
(
00:00
+0100)
aft.c
patch
|
blob
|
history
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)++; \