ref: 88306be549a308dc29e28d78ac29606c234406e5
parent: 5790144ef6d08cf3b621742a03d2cab03037c505
author: Patrick Mollohan <14967142+patrickmollohan@users.noreply.github.com>
date: Sun Sep 18 06:47:28 EDT 2022
Fix "multi-character character constant" warning (#96)
--- a/zelda_rtl.c
+++ b/zelda_rtl.c
@@ -354,7 +354,7 @@
char buf[40], hdr[8];
sprintf(buf, "msu/alttp_msu-%d.pcm", msu_track);
msu_file = fopen(buf, "rb");
- if (msu_file == NULL || fread(hdr, 1, 8, msu_file) != 8 || *(uint32 *)(hdr + 0) != '1USM') {
+ if (msu_file == NULL || fread(hdr, 1, 8, msu_file) != 8 || *(uint32 *)(hdr + 0) != (('1' << 24) | ('U' << 16) | ('S' << 8) | 'M')) {
if (msu_file != NULL) fclose(msu_file), msu_file = NULL;
zelda_apu_write(APUI00, msu_track);
msu_track = 0;