mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/stringio] Suppress a sign-compare warning
https://github.com/ruby/stringio/commit/a88c070e0b
This commit is contained in:
parent
3b36e34b90
commit
771f6dd75d
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ strio_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash,
|
|||
n = strchr(n, '|');
|
||||
}
|
||||
e = strchr(++n, ':');
|
||||
len = e ? e - n : strlen(n);
|
||||
len = e ? e - n : (long)strlen(n);
|
||||
if (len > 0 && len <= ENCODING_MAXNAMELEN) {
|
||||
if (e) {
|
||||
memcpy(encname, n, len);
|
||||
|
|
Loading…
Reference in a new issue