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:
Akash 2017-06-09 19:12:39 +05:30 committed by Gregory Hainaut
parent 7d75a73105
commit f2de553d63
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ void GSDumpBase::Transfer(int index, const uint8* mem, size_t size)
return;
AppendRawData(0);
AppendRawData(index);
AppendRawData(static_cast<uint8>(index));
AppendRawData(&size, 4);
AppendRawData(mem, size);
}
@ -75,7 +75,7 @@ bool GSDumpBase::VSync(int field, bool last, const GSPrivRegSet* regs)
AppendRawData(regs, sizeof(*regs));
AppendRawData(1);
AppendRawData(field);
AppendRawData(static_cast<uint8>(field));
if (last)
m_extra_frames--;

View File

@ -159,7 +159,7 @@ GSDumpRaw::GSDumpRaw(char* filename, const char* repack_filename) : GSDumpFile(f
}
bool GSDumpRaw::IsEof() {
return feof(m_fp);
return !!feof(m_fp);
}
bool GSDumpRaw::Read(void* ptr, size_t size) {