mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
re.c: suppress warning
* re.c (rb_memsearch): suppress parentheses warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ca3b9bbfe0
commit
23f039f3b3
1 changed files with 2 additions and 2 deletions
4
re.c
4
re.c
|
@ -236,9 +236,9 @@ rb_memsearch(const void *x0, long m, const void *y0, long n, rb_encoding *enc)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else if (m == 1) {
|
else if (m == 1) {
|
||||||
const unsigned char *ys;
|
const unsigned char *ys = memchr(y, *x, n);
|
||||||
|
|
||||||
if (ys = memchr(y, *x, n))
|
if (ys)
|
||||||
return ys - y;
|
return ys - y;
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue