mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Warning fixes
This commit is contained in:
@@ -113,8 +113,8 @@ static inline bool IsGPR(LoongArch64Reg reg) { return (reg & ~0x1F) == 0; }
|
||||
static inline bool IsFPR(LoongArch64Reg reg) { return (reg & ~0x1F) == 0x20; }
|
||||
static inline bool IsVPR(LoongArch64Reg reg) { return (reg & ~0x1F) == 0x40; }
|
||||
static inline bool IsXPR(LoongArch64Reg reg) { return (reg & ~0x1F) == 0x60; }
|
||||
static inline bool IsCFR(LoongArch64CFR cfr) { return (cfr < 8); }
|
||||
static inline bool IsFCSR(LoongArch64FCSR fcsr) { return (fcsr < 4); }
|
||||
static inline bool IsCFR(LoongArch64CFR cfr) { return ((int)cfr < 8); }
|
||||
static inline bool IsFCSR(LoongArch64FCSR fcsr) { return ((int)fcsr < 4); }
|
||||
inline LoongArch64Reg EncodeRegToV(LoongArch64Reg reg) { return (LoongArch64Reg)(DecodeReg(reg) + V0); }
|
||||
|
||||
struct FixupBranch {
|
||||
@@ -1395,4 +1395,4 @@ private:
|
||||
void PoisonMemory(int offset) override;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4281,7 +4281,7 @@ int FlushPtpSocket(int socketId) {
|
||||
|
||||
// Send Empty Data just to trigger Nagle on/off effect to flush the send buffer, Do we need to trigger this at all or is it automatically flushed?
|
||||
//changeBlockingMode(socket->id, nonblock);
|
||||
int ret = send(socketId, nullptr, 0, MSG_NOSIGNAL);
|
||||
int ret = send(socketId, "", 0, MSG_NOSIGNAL);
|
||||
if (ret == SOCKET_ERROR) ret = socket_errno;
|
||||
//changeBlockingMode(socket->id, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user