diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-12 13:37:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-12 13:37:11 +0000 |
commit | 3f78d84661b61c686c9b49a51ab742fb3484b4de (patch) | |
tree | 33f4550e7a0fee96aa6a3eabf4a26bcc96c421b3 /ChangeLog | |
parent | a6f13053807a121e2169c3002984ae3916ce089f (diff) | |
download | ruby-3f78d84661b61c686c9b49a51ab742fb3484b4de.tar.gz |
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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,12 @@ +Thu Sep 12 22:37:08 2013 Anton Ovchinnikov <revolver112@gmail.com> + + * 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] + Thu Sep 12 21:35:46 2013 Naohisa Goto <ngotogenome@gmail.com> * Makefile.in (libruby-static.a): change LDFLAGS order. LDFLAGS may |