[ruby-cvs:70403] nobu:r63313 (trunk): ast.c: use enum in switch for warnings

nobu at ruby-lang.org nobu at ruby-lang.org
Tue May 1 15:55:43 JST 2018


nobu	2018-05-01 15:55:43 +0900 (Tue, 01 May 2018)

  New Revision: 63313

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63313

  Log:
    ast.c: use enum in switch for warnings
    
    * ext/-test-/ast/ast.c (node_children): use enum instead of int
      for not-handled enumeration value in switch warnings.
    
    * ext/-test-/ast/ast.c (node_children): fix the rb_bug message.

  Modified files:
    trunk/ext/-test-/ast/ast.c


More information about the ruby-cvs mailing list