diff options
| author | Roman971 <32455037+Roman971@users.noreply.github.com> | 2022-07-30 02:35:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-29 20:35:09 -0400 |
| commit | 1652b7e5d76f4fb71495194f24572010ebf6c961 (patch) | |
| tree | c206ceaf8f4a5310affddd6fb336f74dca5e05ca /src/code/code_800EC960.c | |
| parent | 7254adec9f893db7b9d55f6ca0f3667f6b6335e7 (diff) | |
Fix audio strings with -use_readwrite_const and -signed (#1324)
* Fix audio strings with -use_readwrite_const and -signed
* Add comments for audio flags in makefile
Diffstat (limited to 'src/code/code_800EC960.c')
| -rw-r--r-- | src/code/code_800EC960.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/code/code_800EC960.c b/src/code/code_800EC960.c index 631014d09..94e1bd417 100644 --- a/src/code/code_800EC960.c +++ b/src/code/code_800EC960.c @@ -1225,7 +1225,7 @@ s8 D_8016B7DC; f32 D_8016B7E0; u16 D_8016B7E4; struct { - s8 str[5]; + char str[5]; u16 num; } sAudioScrPrtBuf[SCROLL_PRINT_BUF_SIZE]; u8 sRiverSoundMainBgmVol; @@ -3586,18 +3586,18 @@ void AudioDebug_ProcessInput_SfxParamChg(void) { } } -void AudioDebug_ScrPrt(const s8* str, u16 num) { +void AudioDebug_ScrPrt(const char* str, u16 num) { u8 i = 0; sAudioScrPrtBuf[sAudioScrPrtInd].num = num; - while (str[i] != 0) { + while (str[i] != '\0') { sAudioScrPrtBuf[sAudioScrPrtInd].str[i] = str[i]; i++; } while (i < 5) { - sAudioScrPrtBuf[sAudioScrPrtInd].str[i] = 0; + sAudioScrPrtBuf[sAudioScrPrtInd].str[i] = '\0'; i++; } |
