Removing unnecessary unsigned checks.

This commit is contained in:
Sinoxan 2015-07-16 19:01:11 +01:00
parent ecd4af10c9
commit 0cdff21582
2 changed files with 5 additions and 5 deletions

View File

@ -331,7 +331,7 @@ uint64_t GL4GraphicsSystem::ReadRegister(uint32_t addr) {
return 0x050002D0;
}
assert_true(r >= 0 && r < RegisterFile::kRegisterCount);
assert_true(r < RegisterFile::kRegisterCount);
return register_file_.values[r].u32;
}
@ -350,7 +350,7 @@ void GL4GraphicsSystem::WriteRegister(uint32_t addr, uint64_t value) {
break;
}
assert_true(r >= 0 && r < RegisterFile::kRegisterCount);
assert_true(r < RegisterFile::kRegisterCount);
register_file_.values[r].u32 = static_cast<uint32_t>(value);
}

View File

@ -309,7 +309,7 @@ SHIM_CALL KeSetCurrentProcessType_shim(PPCContext* ppc_context,
XELOGD("KeSetCurrentProcessType(%d)", type);
assert_true(type >= 0 && type <= 2);
assert_true(type <= 2);
kernel_state->set_process_type(type);
}
@ -905,7 +905,7 @@ SHIM_CALL KeWaitForMultipleObjects_shim(PPCContext* ppc_context,
count, objects_ptr, wait_type, wait_reason, processor_mode, alertable,
timeout_ptr, wait_block_array_ptr);
assert_true(wait_type >= 0 && wait_type <= 1);
assert_true(wait_type <= 1);
X_STATUS result = X_STATUS_SUCCESS;
@ -935,7 +935,7 @@ dword_result_t NtWaitForMultipleObjectsEx(
dword_t count, pointer_t<xe::be<uint32_t>> handles, dword_t wait_type,
dword_t wait_mode, dword_t alertable,
pointer_t<xe::be<uint64_t>> timeout_ptr) {
assert_true(wait_type >= 0 && wait_type <= 1);
assert_true(wait_type <= 1);
X_STATUS result = X_STATUS_SUCCESS;
std::vector<object_ref<XObject>> objects(count);