mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-10 16:23:05 +00:00
[Common Data Net/Core Debugger HLE/GPU Debugger] Fixed reduction data type size to strict 32-bit integer
This commit is contained in:
parent
60402909f8
commit
309f0d97f2
@ -132,9 +132,9 @@ int LoadZIM(const char *filename, int *width, int *height, int *format, uint8_t
|
||||
return 0;
|
||||
}
|
||||
|
||||
int retval = LoadZIMPtr(buffer, (int)size, width, height, format, image);
|
||||
int retval = LoadZIMPtr(buffer, size, width, height, format, image);
|
||||
if (!retval) {
|
||||
ERROR_LOG(IO, "Not a valid ZIM file: %s (size: %d bytes)", filename, (int)size);
|
||||
ERROR_LOG(IO, "Not a valid ZIM file: %s (size: %lld bytes)", filename, (long long)size);
|
||||
}
|
||||
delete [] buffer;
|
||||
return retval;
|
||||
|
@ -118,7 +118,7 @@ void ServerRequest::WriteHttpResponseHeader(const char *ver, int status, int64_t
|
||||
buffer->Printf("Content-Length: %llu\r\n", size);
|
||||
}
|
||||
if (otherHeaders) {
|
||||
buffer->Push(otherHeaders, (int)strlen(otherHeaders));
|
||||
buffer->Push(otherHeaders, strlen(otherHeaders));
|
||||
}
|
||||
buffer->Push("\r\n");
|
||||
}
|
||||
|
@ -1114,7 +1114,7 @@ void SymbolMap::FillSymbolListBox(HWND listbox,SymbolType symType) {
|
||||
|
||||
case ST_DATA:
|
||||
{
|
||||
int count = ARRAYSIZE(defaultSymbols)+(int)activeData.size();
|
||||
size_t count = ARRAYSIZE(defaultSymbols)+activeData.size();
|
||||
SendMessage(listbox, LB_INITSTORAGE, (WPARAM)count, (LPARAM)count * 30);
|
||||
|
||||
for (int i = 0; i < ARRAYSIZE(defaultSymbols); i++) {
|
||||
|
@ -1912,7 +1912,7 @@ bool __KernelLoadGEDump(const std::string &base_filename, std::string *error_str
|
||||
};
|
||||
|
||||
for (size_t i = 0; i < ARRAY_SIZE(runDumpCode); ++i) {
|
||||
Memory::WriteUnchecked_U32(runDumpCode[i], mipsr4k.pc + (int)i * sizeof(u32_le));
|
||||
Memory::WriteUnchecked_U32(runDumpCode[i], mipsr4k.pc + (u32)i * sizeof(u32_le));
|
||||
}
|
||||
|
||||
PSPModule *module = new PSPModule();
|
||||
|
@ -369,7 +369,7 @@ bool DumpExecute::SubmitCmds(const void *p, u32 sz) {
|
||||
gpu->EnableInterrupts(true);
|
||||
}
|
||||
|
||||
u32 pendingSize = (int)execListQueue.size() * sizeof(u32);
|
||||
u32 pendingSize = (u32)execListQueue.size() * sizeof(u32);
|
||||
// Validate space for jump.
|
||||
u32 allocSize = pendingSize + sz + 8;
|
||||
if (execListPos + allocSize >= execListBuf + LIST_BUF_SIZE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user