From: "kosaki (Motohiro KOSAKI)" Date: 2013-09-12T06:12:39+09:00 Subject: [ruby-core:57149] [ruby-trunk - Feature #8890] [PATCH] Eliminate less-than-zero checks for unsigned variables Issue #8890 has been updated by kosaki (Motohiro KOSAKI). It would be nice configure script abort if detect signed size_t. It protects us from crazy and invalid platform issue. Other than that, the patch looks good to me. ---------------------------------------- Feature #8890: [PATCH] Eliminate less-than-zero checks for unsigned variables https://bugs.ruby-lang.org/issues/8890#change-41761 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/