Issue #8890 has been reported by tonyo (Anton Ovchinnikov). ---------------------------------------- Feature #8890: [PATCH] Eliminate less-than-zero checks for unsigned variables https://bugs.ruby-lang.org/issues/8890 Author: tonyo (Anton Ovchinnikov) Status: Open Priority: Low Assignee: Category: Target version: According to section 7.17 of C99 standard (http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf) size_t is an unsigned type. What do you think about the following patch which changes less-than-zero checks to equal-zero for unsigned (including size_t) variables? These checks were found with 'cppcheck' static analysis tool. -- http://bugs.ruby-lang.org/