mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Merge pull request #12394 from lioncash/compare
General: Resolve -Wsign-compare warnings
This commit is contained in:
@ -373,7 +373,7 @@ void TraversalClient::HandleTraversalTest()
|
||||
waitCondition = 0;
|
||||
break;
|
||||
}
|
||||
else if (rv < sizeof(packet) || raddr.host != m_ServerAddress.host ||
|
||||
else if (rv < int(sizeof(packet)) || raddr.host != m_ServerAddress.host ||
|
||||
raddr.host != m_portAlt || packet.requestId != m_TestRequestId)
|
||||
{
|
||||
// irrelevant packet, ignore
|
||||
|
@ -248,7 +248,7 @@ void Arm64GPRCache::FlushRegisters(BitSet32 regs, bool maintain_state, ARM64Reg
|
||||
ASSERT_MSG(DYNA_REC, m_guest_registers[GUEST_GPR_OFFSET + i].GetType() != RegType::Discarded,
|
||||
"Attempted to flush discarded register");
|
||||
|
||||
if (i + 1 < GUEST_GPR_COUNT && regs[i + 1])
|
||||
if (i + 1 < int(GUEST_GPR_COUNT) && regs[i + 1])
|
||||
{
|
||||
// We've got two guest registers in a row to store
|
||||
OpArg& reg1 = m_guest_registers[GUEST_GPR_OFFSET + i];
|
||||
|
@ -236,9 +236,9 @@ void JitArm64::twx(UGeckoInstruction inst)
|
||||
constexpr std::array<CCFlags, 5> conditions{{CC_LT, CC_GT, CC_EQ, CC_VC, CC_VS}};
|
||||
Common::SmallVector<FixupBranch, conditions.size()> fixups;
|
||||
|
||||
for (int i = 0; i < conditions.size(); i++)
|
||||
for (size_t i = 0; i < conditions.size(); i++)
|
||||
{
|
||||
if (inst.TO & (1 << i))
|
||||
if (inst.TO & (1U << i))
|
||||
{
|
||||
FixupBranch f = B(conditions[i]);
|
||||
fixups.push_back(f);
|
||||
|
@ -598,7 +598,7 @@ void VertexManagerBase::Flush()
|
||||
std::optional<CustomPixelShader> custom_pixel_shader;
|
||||
std::vector<std::string> custom_pixel_texture_names;
|
||||
std::span<u8> custom_pixel_shader_uniforms;
|
||||
for (int i = 0; i < texture_names.size(); i++)
|
||||
for (size_t i = 0; i < texture_names.size(); i++)
|
||||
{
|
||||
const std::string& texture_name = texture_names[i];
|
||||
const u32 texture_unit = texture_units[i];
|
||||
|
Reference in New Issue
Block a user