mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
missing/memcmp.c: suppress a -Wparentheses
warning
This commit is contained in:
parent
1f3f50fb5e
commit
d76be10df1
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ memcmp(const void *s1, const void *s2, size_t len)
|
|||
register int tmp;
|
||||
|
||||
for (; len; --len) {
|
||||
if (tmp = *a++ - *b++)
|
||||
tmp = *a++ - *b++;
|
||||
if (tmp)
|
||||
return tmp;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue