Merge pull request #321 from hydra-emu/wrage-5

Fix ambiguity between enum and type
This commit is contained in:
wheremyfoodat 2023-10-21 11:53:06 +03:00 committed by GitHub
commit ab1498aa67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -641,9 +641,8 @@ void Kernel::svcReleaseSemaphore() {
// can simply compile to a fast sub+cmp+set despite looking slow
bool Kernel::isWaitable(const KernelObject* object) {
auto type = object->type;
using enum KernelObjectType;
return type == Event || type == Mutex || type == Port || type == Semaphore || type == Timer || type == Thread;
return type == KernelObjectType::Event || type == KernelObjectType::Mutex || type == KernelObjectType::Port ||
type == KernelObjectType::Semaphore || type == KernelObjectType::Timer || type == KernelObjectType::Thread;
}
// Returns whether we should wait on a sync object or not