1
0
Fork 0
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:
Yusuke Endoh 2019-08-19 14:43:15 +09:00
parent 1f3f50fb5e
commit d76be10df1

View file

@ -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;