favor comparisons against zero instead of -1
commit98d594abf5053b70fe16459cb80da042bfcea510
authorEric Wong <e@80x24.org>
Sun, 11 Jan 2015 03:19:33 +0000 (11 03:19 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 11 Jan 2015 03:20:21 +0000 (11 03:20 +0000)
tree52e588fc9fe88f7d4ad737b5936a35ce11ff9d93
parent453e19e9631acbdc369acadbf17f705aa4cc8b47
favor comparisons against zero instead of -1

This should allow faster instructions to be used in some cases.
Technically this may be less pedantically correct, but there is
enough existing code out there which does the same thing to
discourage kernel/libc developers from overloading negative
return values.

...And glibc even favors comparison against zero, too.
ext/posix_mq/posix_mq.c