Project

General

Profile

« Previous | Next » 

Revision 9f1c0094

Added by Eric Wong over 10 years ago

enum.c (enum_minmax): simplify return value creation

No need to call three functions on success when one will do.
This results in less LoC and smaller object code, too:

text data bss dec hex filename
33860 0 296 34156 856c gcc/enum.o-before
33852 0 296 34148 8564 gcc/enum.o

  • enum.c (enum_minmax): simplify return value creation
  • test/ruby/test_enum.rb: test behavior on empty

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