コメント追加

Klockwork: 符号なしの値と 0 との比較は常に true となります.

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@95 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-03-01 01:32:54 +00:00
parent 21c838b20c
commit bbbb3258b2
3 changed files with 3 additions and 2 deletions

View File

@ -278,7 +278,7 @@ void GetSaveDataDirectoryRoot()
for (s32 i = 6; i < 8; ++i)
{
bit32 n = (rootHash[k] >> ((7 - i) * 4)) & 0xf;
NN_TASSERT_(0 <= n && n < 16);
NN_TASSERT_(n < 16);
rootStr[i - 6 + k * 2] = static_cast<char> (n < 10 ? '0' + n : 'a' + (n - 10));
}
}

View File

@ -183,7 +183,7 @@ void InitializeSimplePlayer()
void PlaySound(u8 index)
{
NN_ASSERT(0 <= index <= nFiles);
NN_ASSERT(index <= nFiles);
while(!s_SoundThreadInitialized)
{

View File

@ -50,6 +50,7 @@ struct VerDef
nn::pl::CTR::NetworkUpdateVersion nup;
};
// TODO:リージョン追加時に範囲外アクセスにならないよう注意
const nn::ProgramId cCupVerId[] =
{
nn::pl::CTR::SHAREDDATA_TITLEID_CUP_VERSION_JP,