ruby-changes:30392
From: nobu <ko1@a...>
Date: Fri, 9 Aug 2013 22:41:40 +0900 (JST)
Subject: [ruby-changes:30392] nobu:r42471 (trunk): re.c: suppress warning
nobu 2013-08-09 22:41:26 +0900 (Fri, 09 Aug 2013) New Revision: 42471 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42471 Log: re.c: suppress warning * re.c (rb_memsearch): suppress parentheses warning. Modified files: trunk/re.c Index: re.c =================================================================== --- re.c (revision 42470) +++ re.c (revision 42471) @@ -236,9 +236,9 @@ rb_memsearch(const void *x0, long m, con https://github.com/ruby/ruby/blob/trunk/re.c#L236 return 0; } 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; else return -1; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/