[ruby-cvs:50062] nobu:r42920 (trunk): Eliminate less-than-zero checks for unsigned variables

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Sep 12 22:37:12 JST 2013


nobu	2013-09-12 22:37:11 +0900 (Thu, 12 Sep 2013)

  New Revision: 42920

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

  Log:
    Eliminate less-than-zero checks for unsigned variables
    
    * ext/bigdecimal/bigdecimal.c, ext/digest/md5/md5.c,
      ext/json/fbuffer/fbuffer.h, ext/json/generator/generator.c:
      Eliminate less-than-zero checks for unsigned variables.
      According to section 4.1.5 of C89 standard, size_t is an unsigned
      type.  These checks were found with 'cppcheck' static analysis tool.
      [ruby-core:57117] [Feature #8890]

  Modified files:
    trunk/ChangeLog
    trunk/ext/bigdecimal/bigdecimal.c
    trunk/ext/digest/md5/md5.c
    trunk/ext/json/fbuffer/fbuffer.h
    trunk/ext/json/generator/generator.c


More information about the ruby-cvs mailing list