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