mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-06 13:38:56 +00:00
Fix a few warnings, mostly type comparisons.
This commit is contained in:
parent
e59877558f
commit
c142207a93
@ -2136,7 +2136,7 @@ int __KernelCreateThread(const char *threadName, SceUID moduleID, u32 entry, u32
|
||||
attr |= PSP_THREAD_ATTR_USER;
|
||||
|
||||
SceUID id = __KernelCreateThreadInternal(threadName, moduleID, entry, prio, stacksize, attr);
|
||||
if (id == SCE_KERNEL_ERROR_NO_MEMORY)
|
||||
if ((u32)id == SCE_KERNEL_ERROR_NO_MEMORY)
|
||||
{
|
||||
ERROR_LOG_REPORT(SCEKERNEL, "sceKernelCreateThread(name=%s): out of memory, %08x stack requested", threadName, stacksize);
|
||||
return SCE_KERNEL_ERROR_NO_MEMORY;
|
||||
|
@ -1149,7 +1149,7 @@ int _PsmfPlayerSetPsmfOffset(u32 psmfPlayer, const char *filename, int offset, b
|
||||
|
||||
int scePsmfPlayerSetPsmf(u32 psmfPlayer, const char *filename)
|
||||
{
|
||||
int result = _PsmfPlayerSetPsmfOffset(psmfPlayer, filename, 0, false);
|
||||
u32 result = _PsmfPlayerSetPsmfOffset(psmfPlayer, filename, 0, false);
|
||||
if (result == ERROR_PSMFPLAYER_INVALID_STATUS) {
|
||||
ERROR_LOG_REPORT(ME, "scePsmfPlayerSetPsmf(%08x, %s): invalid psmf player or status", psmfPlayer, filename);
|
||||
} else if (result == ERROR_PSMFPLAYER_INVALID_PARAM) {
|
||||
@ -1165,7 +1165,7 @@ int scePsmfPlayerSetPsmf(u32 psmfPlayer, const char *filename)
|
||||
int scePsmfPlayerSetPsmfCB(u32 psmfPlayer, const char *filename)
|
||||
{
|
||||
// TODO: hleCheckCurrentCallbacks?
|
||||
int result = _PsmfPlayerSetPsmfOffset(psmfPlayer, filename, 0, true);
|
||||
u32 result = _PsmfPlayerSetPsmfOffset(psmfPlayer, filename, 0, true);
|
||||
if (result == ERROR_PSMFPLAYER_INVALID_STATUS) {
|
||||
ERROR_LOG_REPORT(ME, "scePsmfPlayerSetPsmfCB(%08x, %s): invalid psmf player or status", psmfPlayer, filename);
|
||||
} else if (result == ERROR_PSMFPLAYER_INVALID_PARAM) {
|
||||
@ -1180,7 +1180,7 @@ int scePsmfPlayerSetPsmfCB(u32 psmfPlayer, const char *filename)
|
||||
|
||||
int scePsmfPlayerSetPsmfOffset(u32 psmfPlayer, const char *filename, int offset)
|
||||
{
|
||||
int result = _PsmfPlayerSetPsmfOffset(psmfPlayer, filename, offset, false);
|
||||
u32 result = _PsmfPlayerSetPsmfOffset(psmfPlayer, filename, offset, false);
|
||||
if (result == ERROR_PSMFPLAYER_INVALID_STATUS) {
|
||||
ERROR_LOG_REPORT(ME, "scePsmfPlayerSetPsmfOffset(%08x, %s): invalid psmf player or status", psmfPlayer, filename);
|
||||
} else if (result == ERROR_PSMFPLAYER_INVALID_PARAM) {
|
||||
@ -1196,7 +1196,7 @@ int scePsmfPlayerSetPsmfOffset(u32 psmfPlayer, const char *filename, int offset)
|
||||
int scePsmfPlayerSetPsmfOffsetCB(u32 psmfPlayer, const char *filename, int offset)
|
||||
{
|
||||
// TODO: hleCheckCurrentCallbacks?
|
||||
int result = _PsmfPlayerSetPsmfOffset(psmfPlayer, filename, offset, true);
|
||||
u32 result = _PsmfPlayerSetPsmfOffset(psmfPlayer, filename, offset, true);
|
||||
if (result == ERROR_PSMFPLAYER_INVALID_STATUS) {
|
||||
ERROR_LOG_REPORT(ME, "scePsmfPlayerSetPsmfOffsetCB(%08x, %s): invalid psmf player or status", psmfPlayer, filename);
|
||||
} else if (result == ERROR_PSMFPLAYER_INVALID_PARAM) {
|
||||
|
@ -90,7 +90,7 @@ static const char *const codecNames[4] = {
|
||||
};
|
||||
|
||||
void AudioClose(SimpleAudio **ctx);
|
||||
static const char *GetCodecName(int codec) {
|
||||
static inline const char *GetCodecName(int codec) {
|
||||
if (codec >= PSP_CODEC_AT3PLUS && codec <= PSP_CODEC_AAC) {
|
||||
return codecNames[codec - PSP_CODEC_AT3PLUS];
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ void GenerateDepalShader100(char *buffer, GEBufferFormat pixelFormat) {
|
||||
// index_multiplier -= 0.01f / texturePixels;
|
||||
|
||||
if (!formatOK) {
|
||||
ERROR_LOG_REPORT_ONCE(depal, G3D, "%i depal unsupported: shift=%i mask=%02x offset=%i", pixelFormat, shift, mask, offset);
|
||||
ERROR_LOG_REPORT_ONCE(depal, G3D, "%i depal unsupported: shift=%i mask=%02x offset=%d", pixelFormat, shift, mask, clutBase);
|
||||
}
|
||||
|
||||
// Offset by half a texel (plus clutBase) to turn NEAREST filtering into FLOOR.
|
||||
|
@ -1938,7 +1938,7 @@ void GLES_GPU::DoBlockTransfer() {
|
||||
// Do the copy! (Hm, if we detect a drawn video frame (see below) then we could maybe skip this?)
|
||||
// Can use GetPointerUnchecked because we checked the addresses above. We could also avoid them
|
||||
// entirely by walking a couple of pointers...
|
||||
if (srcStride == dstStride && width == srcStride) {
|
||||
if (srcStride == dstStride && (u32)width == srcStride) {
|
||||
// Common case in God of War, let's do it all in one chunk.
|
||||
u32 srcLineStartAddr = srcBasePtr + (srcY * srcStride + srcX) * bpp;
|
||||
u32 dstLineStartAddr = dstBasePtr + (dstY * dstStride + dstX) * bpp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user