Project

General

Profile

« Previous | Next » 

Revision f47b38b0

Added by Eric Wong almost 7 years ago

io.c: favor comparisons against zero rather than -1

On my 32-bit x86 userspace, I get the following .text savings:

text data bss dec hex filename 

152971 56 252 153279 256bf io.o.before
152863 56 252 153171 25653 io.o.after

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e