mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Cleanup warnings on MSVC
* Cast return value of IsEof() to bool. (Avoids int -> bool performance warning error) * Cast field and index to the required parameter type of AppendRawData.
This commit is contained in:
parent
7d75a73105
commit
f2de553d63
|
@ -51,7 +51,7 @@ void GSDumpBase::Transfer(int index, const uint8* mem, size_t size)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
AppendRawData(0);
|
AppendRawData(0);
|
||||||
AppendRawData(index);
|
AppendRawData(static_cast<uint8>(index));
|
||||||
AppendRawData(&size, 4);
|
AppendRawData(&size, 4);
|
||||||
AppendRawData(mem, size);
|
AppendRawData(mem, size);
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ bool GSDumpBase::VSync(int field, bool last, const GSPrivRegSet* regs)
|
||||||
AppendRawData(regs, sizeof(*regs));
|
AppendRawData(regs, sizeof(*regs));
|
||||||
|
|
||||||
AppendRawData(1);
|
AppendRawData(1);
|
||||||
AppendRawData(field);
|
AppendRawData(static_cast<uint8>(field));
|
||||||
|
|
||||||
if (last)
|
if (last)
|
||||||
m_extra_frames--;
|
m_extra_frames--;
|
||||||
|
|
|
@ -159,7 +159,7 @@ GSDumpRaw::GSDumpRaw(char* filename, const char* repack_filename) : GSDumpFile(f
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GSDumpRaw::IsEof() {
|
bool GSDumpRaw::IsEof() {
|
||||||
return feof(m_fp);
|
return !!feof(m_fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GSDumpRaw::Read(void* ptr, size_t size) {
|
bool GSDumpRaw::Read(void* ptr, size_t size) {
|
||||||
|
|
Loading…
Reference in New Issue