Fix some correctness warnings.

This commit is contained in:
Unknown W. Brackets 2013-08-12 23:40:22 -07:00
parent 8830d3603e
commit 49c7b9628a
3 changed files with 8 additions and 4 deletions

View File

@ -951,7 +951,7 @@ extern const VFPEnc VFPOps[16][2] = {
{{ -1, -1}, {0x3B, 0x30}}, // 14: VABSi
};
extern const char *VFPOpNames[16] = {
const char *VFPOpNames[16] = {
"VMLA",
"VNMLA",
"VMLS",

View File

@ -967,7 +967,7 @@ FileNode *__IoOpen(int &error, const char* filename, int flags, int mode) {
return f;
}
u32 sceIoOpen(const char* filename, int flags, int mode) {
u32 sceIoOpen(const char *filename, int flags, int mode) {
if (!__KernelIsDispatchEnabled())
return -1;
@ -976,7 +976,7 @@ u32 sceIoOpen(const char* filename, int flags, int mode) {
if (f == NULL)
{
// Timing is not accurate, aiming low for now.
if (error == SCE_KERNEL_ERROR_NOCWD)
if (error == (int)SCE_KERNEL_ERROR_NOCWD)
{
ERROR_LOG(HLE, "SCE_KERNEL_ERROR_NOCWD=sceIoOpen(%s, %08x, %08x) - no current working directory", filename, flags, mode);
return hleDelayResult(SCE_KERNEL_ERROR_NOCWD , "no cwd", 10000);

View File

@ -299,6 +299,10 @@ void FramebufferManager::DrawPixels(const u8 *framebuf, GEBufferFormat pixelForm
memcpy(dst, src, 4 * 480);
}
break;
case GE_FORMAT_INVALID:
_dbg_assert_msg_(G3D, false, "Invalid pixelFormat passed to DrawPixels().");
break;
}
}
}
@ -394,7 +398,7 @@ void GuessDrawingSize(int &drawing_width, int &drawing_height) {
// Generated FBO shouldn't greate than 512x512
// Some games like FF Type-0 inits viewport as 0x0
if ( viewport_width > 512 && viewport_height > 512 || viewport_width <= 1 && viewport_height <= 1 ) {
if ((viewport_width > 512 && viewport_height > 512) || (viewport_width <= 1 && viewport_height <= 1)) {
viewport_width = default_width;
viewport_height = default_height;
}