Skip to content

Commit

Permalink
Fix ambiguity between enum and type
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Oct 20, 2023
1 parent 977ab53 commit 13f2ddc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/kernel/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13f2ddc

Please sign in to comment.