mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Merge pull request #893 from rohitnirmal/scan-build-fixes
Scan build fixes
This commit is contained in:
commit
532b7bb7da
@ -1037,7 +1037,7 @@ void OpArg::WriteSingleByteOp(XEmitter *emit, u8 op, X64Reg _operandReg, int bit
|
|||||||
//operand can either be immediate or register
|
//operand can either be immediate or register
|
||||||
void OpArg::WriteNormalOp(XEmitter *emit, bool toRM, NormalOp op, const OpArg &operand, int bits) const
|
void OpArg::WriteNormalOp(XEmitter *emit, bool toRM, NormalOp op, const OpArg &operand, int bits) const
|
||||||
{
|
{
|
||||||
X64Reg _operandReg = (X64Reg)this->operandReg;
|
X64Reg _operandReg;
|
||||||
if (IsImm())
|
if (IsImm())
|
||||||
{
|
{
|
||||||
_assert_msg_(DYNA_REC, 0, "WriteNormalOp - Imm argument, wrong order");
|
_assert_msg_(DYNA_REC, 0, "WriteNormalOp - Imm argument, wrong order");
|
||||||
@ -1051,7 +1051,6 @@ void OpArg::WriteNormalOp(XEmitter *emit, bool toRM, NormalOp op, const OpArg &o
|
|||||||
|
|
||||||
if (operand.IsImm())
|
if (operand.IsImm())
|
||||||
{
|
{
|
||||||
_operandReg = (X64Reg)0;
|
|
||||||
WriteRex(emit, bits, bits);
|
WriteRex(emit, bits, bits);
|
||||||
|
|
||||||
if (!toRM)
|
if (!toRM)
|
||||||
|
@ -22,7 +22,7 @@ namespace DiscIO
|
|||||||
|
|
||||||
CBannerLoaderWii::CBannerLoaderWii(DiscIO::IVolume *pVolume)
|
CBannerLoaderWii::CBannerLoaderWii(DiscIO::IVolume *pVolume)
|
||||||
{
|
{
|
||||||
u64 TitleID;
|
u64 TitleID = 0;
|
||||||
pVolume->GetTitleID((u8*)&TitleID);
|
pVolume->GetTitleID((u8*)&TitleID);
|
||||||
TitleID = Common::swap64(TitleID);
|
TitleID = Common::swap64(TitleID);
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ u64 CVolumeGC::GetRawSize() const
|
|||||||
|
|
||||||
bool CVolumeGC::IsDiscTwo() const
|
bool CVolumeGC::IsDiscTwo() const
|
||||||
{
|
{
|
||||||
bool discTwo;
|
bool discTwo = false;
|
||||||
Read(6,1, (u8*) &discTwo);
|
Read(6,1, (u8*) &discTwo);
|
||||||
return discTwo;
|
return discTwo;
|
||||||
}
|
}
|
||||||
|
@ -288,7 +288,7 @@ const std::string GameListItem::GetWiiFSPath() const
|
|||||||
|
|
||||||
if (DiscIO::IsVolumeWiiDisc(iso) || DiscIO::IsVolumeWadFile(iso))
|
if (DiscIO::IsVolumeWiiDisc(iso) || DiscIO::IsVolumeWadFile(iso))
|
||||||
{
|
{
|
||||||
u64 title;
|
u64 title = 0;
|
||||||
|
|
||||||
iso->GetTitleID((u8*)&title);
|
iso->GetTitleID((u8*)&title);
|
||||||
title = Common::swap64(title);
|
title = Common::swap64(title);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user