< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #8890 has been updated by nobu (Nobuyoshi Nakada).
Description updated
Currently we don't assume C99, but C89.
----------------------------------------
Feature #8890: [PATCH] Eliminate less-than-zero checks for unsigned variables
https://bugs.ruby-lang.org/issues/8890#change-41731
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/