diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2023-11-01 20:07:38 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-02 10:07:38 +1100 |
| commit | f276d2b0e618f7fc95a35b629161561489203f39 (patch) | |
| tree | bde1366107e427c1b6b5cf32db2eb7912a0d7bb0 /src/code/z_play.c | |
| parent | 42e1c438e1e78e3a298c71734cb7e699a990c94c (diff) | |
Enable `-Wint-conversion` warning (#1266)
* fixing some warnings
* more pointer fixing
* Use `-Wno-int-conversion` on audio files
* more progress
* fix
* more pointer fixes
* kinda progress
* Fix remaining casts
* Format
* fix merge
* fix warnings
* fix parameter
* use SEGMENT_ROM_START_OFFSET a bit more
* format
* fix audio warnings
* some more fixes
* fix en_go
* review
* review
* whoops, missing cast
* review
* review
* ->data
* format
* review
* fix
* asPtr
* fix
* Update src/code/sched.c
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
* review
* fix in EnDnh
* improve format
* engo
* format
* fix
* format
* Update include/z64.h
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
* TexturePtr
* fix warnings
* fix warnings
* format
* fix
* review
---------
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
Diffstat (limited to 'src/code/z_play.c')
| -rw-r--r-- | src/code/z_play.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/code/z_play.c b/src/code/z_play.c index bec7f5f44..0f506c5fe 100644 --- a/src/code/z_play.c +++ b/src/code/z_play.c @@ -2329,7 +2329,10 @@ void Play_Init(GameState* thisx) { THA_GetRemaining(&this->state.tha); zAllocSize = THA_GetRemaining(&this->state.tha); zAlloc = (uintptr_t)THA_AllocTailAlign16(&this->state.tha, zAllocSize); - ZeldaArena_Init(((zAlloc + 8) & ~0xF), (zAllocSize - ((zAlloc + 8) & ~0xF)) + zAlloc); //! @bug: Incorrect ALIGN16s + + //! @bug: Incorrect ALIGN16s + ZeldaArena_Init((void*)((zAlloc + 8) & ~0xF), (zAllocSize - ((zAlloc + 8) & ~0xF)) + zAlloc); + Actor_InitContext(this, &this->actorCtx, this->linkActorEntry); while (!Room_HandleLoadCallbacks(this, &this->roomCtx)) {} |
