summaryrefslogtreecommitdiff
path: root/src/code/z_sample.c
diff options
context:
space:
mode:
authorRandom <28494085+Random0666@users.noreply.github.com>2020-03-22 19:32:44 +0100
committerRandom <28494085+Random0666@users.noreply.github.com>2020-03-22 19:32:44 +0100
commit0db4629a63bca63a1cd913c2d07f887dcf974228 (patch)
treedd48c190f9c93976a61c980bf90620ae22e08354 /src/code/z_sample.c
parentbd00e0d1da2cf316d40654e4b5c743edd9532d06 (diff)
Update PR #22
minor fixes
Diffstat (limited to 'src/code/z_sample.c')
-rw-r--r--src/code/z_sample.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/z_sample.c b/src/code/z_sample.c
index 3c8f31f69..eb29dc475 100644
--- a/src/code/z_sample.c
+++ b/src/code/z_sample.c
@@ -23,7 +23,7 @@ void Sample_Draw(SampleContext* this)
func_800C6AC4(gfxArr, gfxCtx, "../z_sample.c", 62);
- gSPSegment(gfxCtx->polyOpa.p++, 0, 0);
+ gSPSegment(gfxCtx->polyOpa.p++, 0, NULL;
gSPSegment(gfxCtx->polyOpa.p++, 1, this->staticSegment);
func_80095248(gfxCtx, 0, 0, 0);
@@ -95,7 +95,7 @@ void Sample_SetupView(SampleContext* this)
void Sample_LoadTitleStatic(SampleContext* this)
{
- u32 size = (u32)(_title_staticSegmentRomEnd - _title_staticSegmentRomStart);
+ u32 size = _title_staticSegmentRomEnd - _title_staticSegmentRomStart;
this->staticSegment = Game_Alloc(&this->state, size, "../z_sample.c", 163);
DmaMgr_SendRequest1(this->staticSegment, _title_staticSegmentRomStart, size, "../z_sample.c", 164);