mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 12:01:43 +00:00
Fix warnings
This commit is contained in:
parent
75d4afa3c8
commit
2dde74b4b6
2 changed files with 1 additions and 3 deletions
|
|
@ -62,14 +62,12 @@ bool dynamic_pool_contains(struct DynamicPool *pool, void* ptr) {
|
|||
if (!pool || !ptr) { return false; }
|
||||
|
||||
struct DynamicPoolNode* node = pool->tail;
|
||||
struct DynamicPoolNode* next = node;
|
||||
|
||||
while (node) {
|
||||
struct DynamicPoolNode* prev = node->prev;
|
||||
if (node->ptr == ptr) {
|
||||
return true;
|
||||
}
|
||||
next = node;
|
||||
node = prev;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -478,7 +478,7 @@ void smlua_model_util_store_in_slot(u32 slot, const char* name) {
|
|||
}
|
||||
|
||||
u16 smlua_model_util_load(enum ModelExtendedId extId) {
|
||||
if (extId >= E_MODEL_MAX + sCustomModelsCount) { extId = E_MODEL_ERROR_MODEL; }
|
||||
if ((u32)extId >= (u32)E_MODEL_MAX + (u32)sCustomModelsCount) { extId = E_MODEL_ERROR_MODEL; }
|
||||
|
||||
struct ModelUtilsInfo* info = (extId < E_MODEL_MAX)
|
||||
? &sModels[extId]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue