[ruby-cvs:58725] normal:r51577 (trunk): method.h: cast checks to int for >= 0 checks

normal at ruby-lang.org normal at ruby-lang.org
Fri Aug 14 18:51:51 JST 2015


normal	2015-08-14 18:51:50 +0900 (Fri, 14 Aug 2015)

  New Revision: 51577

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

  Log:
    method.h: cast checks to int for >= 0 checks
    
    Setting VM_CHECK_MODE to 1 in vm_core.h makes noisy warnings
    otherwise.  AFAIK, the signedness of enums is
    implementation-dependent, and GCC considers them unsigned and
    warns.
    
    Tested on gcc 4.7.2 (Debian 4.7.2-5)
    
    * method.h (METHOD_ENTRY_VISI_SET): cast visi to int
      (METHOD_ENTRY_FLAGS_SET): ditto

  Modified files:
    trunk/ChangeLog
    trunk/method.h


More information about the ruby-cvs mailing list