Skip to content

Commit f92ff9a

Browse files
committed
Remove an excess semicolon in a macro
1 parent a0cd81e commit f92ff9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ should_be_T_ARRAY(VALUE ary)
109109
#define FL_UNSET_SHARED(ary) FL_UNSET((ary), RARRAY_SHARED_FLAG)
110110

111111
#define ARY_SET_PTR_FORCE(ary, p) \
112-
RARRAY(ary)->as.heap.ptr = (p);
112+
(RARRAY(ary)->as.heap.ptr = (p))
113113
#define ARY_SET_PTR(ary, p) do { \
114114
RUBY_ASSERT(!ARY_EMBED_P(ary)); \
115115
RUBY_ASSERT(!OBJ_FROZEN(ary)); \
116-
ARY_SET_PTR_FORCE(ary, p); \
116+
ARY_SET_PTR_FORCE(ary, p); \
117117
} while (0)
118118
#define ARY_SET_EMBED_LEN(ary, n) do { \
119119
long tmp_n = (n); \

0 commit comments

Comments
 (0)