diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-21 10:19:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-21 10:19:10 +0000 |
commit | 0f22b32711d4d113fea185879aa554bc864537e9 (patch) | |
tree | 8edc4d87eee87f0ea957be18ae2c9c82881132f1 /re.c | |
parent | a087e0f5a1dc9f7ba2b43fd2cf4ebfb683ac7f7e (diff) | |
download | ruby-0f22b32711d4d113fea185879aa554bc864537e9.tar.gz |
Remove -Wno-parentheses flag.
[Fix GH-1958]
From: Jun Aruga <jaruga@redhat.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -95,7 +95,7 @@ rb_memsearch_ss(const unsigned char *xs, long m, const unsigned char *ys, long n { const unsigned char *y; - if (y = memmem(ys, n, xs, m)) + if ((y = memmem(ys, n, xs, m)) != NULL) return y - ys; else return -1; |