Skip to content

Sound.c mismatched types (Possible fix included) #48

Description

@knuxyl

patches/sound.c causes game to not compile because line 149 (with gcc and clang)
var_v1 = &D_801C09E8_1C15E8;
with var_v1 being
u16 *var_v1;
and the value being
extern u16 D_801C09E8_1C15E8[];
arrays decay into pointers, so the & is unneccesary when assigning to var_v1
Possible fix
var_v1 = D_801C09E8_1C15E8;
Another possible fix depending on desired functionality (in which i have no idea what it does)
u16 **var_v1;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions