Skip to content

Commit c50abc9

Browse files
committed
Do not use C99 style comment [ci skip]
The minimum required ruby version of this library is still 2.4. C99 has been adopted since ruby 2.7.
1 parent 3dc627d commit c50abc9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ext/strscan/strscan.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,16 +1261,17 @@ strscan_parse_integer(struct strscanner *p, int base, long len)
12611261
}
12621262

12631263
static inline bool
1264-
strscan_ascii_compat_fastpath(VALUE str) {
1264+
strscan_ascii_compat_fastpath(VALUE str)
1265+
{
12651266
int encindex = ENCODING_GET_INLINED(str);
1266-
// The overwhelming majority of strings are in one of these 3 encodings.
1267+
/* The overwhelming majority of strings are in one of these 3 encodings. */
12671268
return encindex == utf8_encindex || encindex == binary_encindex || encindex == usascii_encindex;
12681269
}
12691270

12701271
static inline void
12711272
strscan_must_ascii_compat(VALUE str)
12721273
{
1273-
// The overwhelming majority of strings are in one of these 3 encodings.
1274+
/* The overwhelming majority of strings are in one of these 3 encodings. */
12741275
if (RB_LIKELY(strscan_ascii_compat_fastpath(str))) {
12751276
return;
12761277
}

0 commit comments

Comments
 (0)