Skip to content

Commit 44434aa

Browse files
committed
math32.h: remove typeof depends
Signed-off-by: ligd <liguiding1@xiaomi.com>
1 parent 48dd8bc commit 44434aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/nuttx/lib/math32.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ extern "C"
328328
})
329329

330330
# define div_const(n, base) \
331-
((sizeof(typeof(n)) == sizeof(uint64_t)) ? div64_const(n, base) : ((n) / (base)))
331+
((sizeof(n) == sizeof(uint64_t)) ? div64_const(n, base) : ((n) / (base)))
332332
# define div_const_roundup(n, base) \
333-
((sizeof(typeof(n)) == sizeof(uint64_t)) ? div64_const((n) + (base) - 1, base) : \
333+
((sizeof(n) == sizeof(uint64_t)) ? div64_const((n) + (base) - 1, base) : \
334334
(((n) + (base) - 1) / (base)))
335335
# define div_const_roundnearest(n, base) \
336-
((sizeof(typeof(n)) == sizeof(uint64_t)) ? div64_const((n) + ((base) / 2), base) : \
336+
((sizeof(n) == sizeof(uint64_t)) ? div64_const((n) + ((base) / 2), base) : \
337337
(((n) + ((base) / 2)) / (base)))
338338
#else
339339
# define div_const(n, base) ((n) / (base))

0 commit comments

Comments
 (0)