Skip to content

Commit a88c070

Browse files
committed
Suppress a sign-compare warning
1 parent fb36594 commit a88c070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/stringio/stringio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ strio_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash,
6565
n = strchr(n, '|');
6666
}
6767
e = strchr(++n, ':');
68-
len = e ? e - n : strlen(n);
68+
len = e ? e - n : (long)strlen(n);
6969
if (len > 0 && len <= ENCODING_MAXNAMELEN) {
7070
if (e) {
7171
memcpy(encname, n, len);

0 commit comments

Comments
 (0)