Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some random warnings.
  • Loading branch information
Parlane committed Dec 23, 2012
1 parent f865450 commit 59ec1fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Common/Src/VideoBackendBase.cpp
Expand Up @@ -41,7 +41,7 @@ static bool IsGteVista()

VER_SET_CONDITION(dwlConditionMask, VER_MAJORVERSION, VER_GREATER_EQUAL);

return VerifyVersionInfo(&osvi, VER_MAJORVERSION, dwlConditionMask);
return VerifyVersionInfo(&osvi, VER_MAJORVERSION, dwlConditionMask) != FALSE;
}
#endif

Expand Down
6 changes: 3 additions & 3 deletions Source/Core/Core/Src/Movie.cpp
Expand Up @@ -97,7 +97,7 @@ void EnsureTmpInputSize(size_t bound)
if (tmpInput != NULL)
{
if (g_totalBytes > 0)
memcpy(newTmpInput, tmpInput, g_totalBytes);
memcpy(newTmpInput, tmpInput, (size_t)g_totalBytes);
delete[] tmpInput;
}
tmpInput = newTmpInput;
Expand Down Expand Up @@ -637,7 +637,7 @@ void RecordInput(SPADStatus *PadStatus, int controllerID)
g_bDiscChange = false;
}

EnsureTmpInputSize(g_currentByte + 8);
EnsureTmpInputSize((size_t)(g_currentByte + 8));
memcpy(&(tmpInput[g_currentByte]), &g_padState, 8);
g_currentByte += 8;
g_totalBytes = g_currentByte;
Expand All @@ -661,7 +661,7 @@ void RecordWiimote(int wiimote, u8 *data, u8 size)
return;

InputUpdate();
EnsureTmpInputSize(g_currentByte + size + 1);
EnsureTmpInputSize((size_t)(g_currentByte + size + 1));
tmpInput[g_currentByte++] = size;
memcpy(&(tmpInput[g_currentByte]), data, size);
g_currentByte += size;
Expand Down

0 comments on commit 59ec1fe

Please sign in to comment.