summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2023-08-30 10:02:07 -0700
committerGitHub <noreply@github.com>2023-08-30 17:02:07 +0000
commit4aadf4c14c2c2605c69a54b45c92326c729b1b7b (patch)
treef7ae8d37929bcee2e42686acb24143bec4457816 /soh/src/code
parent738172d9edb12a0f2757596ed89ff4737e7032be (diff)
Fix more warnings. (#3101)
* Fix warnings * Submodule
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_parameter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c
index 9ac51adab..8367365f0 100644
--- a/soh/src/code/z_parameter.c
+++ b/soh/src/code/z_parameter.c
@@ -6185,11 +6185,10 @@ void Interface_DrawTotalGameplayTimer(PlayState* play) {
G_AC_NONE | G_ZS_PRIM | G_RM_XLU_SURF | G_RM_XLU_SURF2);
char* totalTimeText = GameplayStats_GetCurrentTime();
- char* textPointer = &totalTimeText[0];
- uint8_t textLength = strlen(textPointer);
+ size_t textLength = strlen(totalTimeText);
uint16_t textureIndex = 0;
- for (uint16_t i = 0; i < textLength; i++) {
+ for (size_t i = 0; i < textLength; i++) {
if (totalTimeText[i] == ':' || totalTimeText[i] == '.') {
textureIndex = 10;
} else {
@@ -6234,6 +6233,7 @@ void Interface_DrawTotalGameplayTimer(PlayState* play) {
gSPWideTextureRectangle(OVERLAY_DISP++, rectLeft << 2, rectTop << 2, (rectLeft + rectWidth) << 2,
(rectTop + rectHeight) << 2, G_TX_RENDERTILE, 0, 0, 1 << 10, 1 << 10);
}
+ free(totalTimeText);
CLOSE_DISPS(play->state.gfxCtx);
}