diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-11-02 00:00:04 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-11-02 00:00:04 -0400 |
| commit | 3eac0a16ac69dcca66f8b74d2d50a79569e38c60 (patch) | |
| tree | b0c9d288d0baa744ef6be8293258ab11ef054a0d /src/dolphin | |
| parent | e9f82ff359b9cffb9770ebab263770e207d6ee79 (diff) | |
warning cleanup
Diffstat (limited to 'src/dolphin')
| -rw-r--r-- | src/dolphin/os/OSError.c | 6 | ||||
| -rw-r--r-- | src/dolphin/os/OSThread.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/dolphin/os/OSError.c b/src/dolphin/os/OSError.c index 4e184693..dc72b456 100644 --- a/src/dolphin/os/OSError.c +++ b/src/dolphin/os/OSError.c @@ -12,11 +12,11 @@ extern volatile u32 __OSLastInterruptSrr0; extern volatile s16 __OSLastInterrupt; extern volatile OSTime __OSLastInterruptTime; -extern OSErrorHandlerEx __OSErrorTable[16]; -OSErrorHandlerEx __OSErrorTable[16]; +extern OSErrorHandlerEx __OSErrorTable[EXCEPTION_MAX]; +OSErrorHandlerEx __OSErrorTable[EXCEPTION_MAX]; #define FPSCR_ENABLE (FPSCR_VE | FPSCR_OE | FPSCR_UE | FPSCR_ZE | FPSCR_XE) -extern u32 __OSFpscrEnableBits = FPSCR_ENABLE; +u32 __OSFpscrEnableBits = FPSCR_ENABLE; __declspec(weak) void OSReport(const char* msg, ...) { va_list marker; diff --git a/src/dolphin/os/OSThread.c b/src/dolphin/os/OSThread.c index a5c0e323..39ca93f6 100644 --- a/src/dolphin/os/OSThread.c +++ b/src/dolphin/os/OSThread.c @@ -255,7 +255,7 @@ static void UnsetRun(OSThread* thread) { } if (queue->head == NULL) { - RunQueueBits &= ~(1 << 31 - thread->effective_priority); + RunQueueBits &= ~(1 << (31 - thread->effective_priority)); } thread->queue = NULL; |
