mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
Fix warning about truncation
This commit is contained in:
parent
a5b3b0df40
commit
6a4ba9d562
3 changed files with 4 additions and 3 deletions
|
@ -19,7 +19,8 @@ enum CellSslError : u32
|
|||
CELL_SSL_ERROR_UNKNOWN_LOAD_CERT = 0x80740037
|
||||
};
|
||||
|
||||
enum // Certificate load flags
|
||||
// Certificate load flags
|
||||
enum : u64
|
||||
{
|
||||
CELL_SSL_LOAD_CERT_SCE01 = 0x0000000000000001ULL,
|
||||
CELL_SSL_LOAD_CERT_SCE02 = 0x0000000000000002ULL,
|
||||
|
|
|
@ -159,7 +159,7 @@ s32 sysutil_check_name_string(const char* src, s32 minlen, s32 maxlen)
|
|||
return -1;
|
||||
}
|
||||
|
||||
for (u32 index = 0;; cur = src[++index])
|
||||
for (s32 index = 0;; cur = src[++index])
|
||||
{
|
||||
if (cur == '\0' || index == maxlen)
|
||||
{
|
||||
|
|
|
@ -4787,7 +4787,7 @@ bool ppu_interpreter::MTFSFI(ppu_thread& ppu, ppu_opcode_t op)
|
|||
{
|
||||
std::array<u32, 16> values{};
|
||||
|
||||
for (size_t i = 0; i < values.size(); i++)
|
||||
for (u32 i = 0; i < values.size(); i++)
|
||||
{
|
||||
u32 value = 0, im = i;
|
||||
value |= (im & 1) << (8 * 3); im >>= 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue