Skip to content

Commit 35f17d5

Browse files
author
Mike Essenmacher
committed
Update for Clang
Signed-off-by: Mike Essenmacher <[email protected]>
1 parent c3c1387 commit 35f17d5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Runtime/jni/jnilog.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ enum { LOG_TRACE, LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_FATAL };
3939
* number of chars printed without '\0'. So as long as k < j, \
4040
* it means the output, with a trailing '\0', fits in the buffer. \
4141
*/ \
42-
while (__i < __l && \
43-
(__k = snprintf(__p, __j, (format), \
44-
((type *)(data))[__i])) < __j) { \
42+
while (__i < __l && (__k = snprintf(__p, __j, (format), \
43+
((type *)(data))[__i])) < __j) { \
4544
assert(__k >= 0 && "snprintf write error to __p"); \
4645
__p += __k; \
4746
__j -= __k; \

src/Support/SmallFPConversion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//
2626
// might violate the rules about strict aliasing in C++.
2727
#define BIT_CAST(TO_TYPE, TO, FROM) \
28-
TO_TYPE(TO); \
28+
TO_TYPE(TO); \
2929
static_assert(sizeof(TO) == sizeof(FROM), "only bit cast same sizes"); \
3030
memcpy(&(TO), &(FROM), sizeof(FROM))
3131

0 commit comments

Comments
 (0)