From 3a59fb7b1c7c68c70c3725b086faeeb51236f720 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Wed, 25 Jan 2017 23:43:57 +0900 Subject: corrected uncaught mistakes found with msvc --- fmdsp/fmdsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fmdsp/fmdsp.c') diff --git a/fmdsp/fmdsp.c b/fmdsp/fmdsp.c index bf29f56..1da0adf 100644 --- a/fmdsp/fmdsp.c +++ b/fmdsp/fmdsp.c @@ -129,7 +129,7 @@ void fmdsp_vram_init(struct fmdsp *fmdsp, } for (int t = 0; t < 10; t++) { struct fmdriver_track_status *track = &work->track_status[t]; - uint8_t *track_type; + const uint8_t *track_type; switch (track->type) { case FMDRIVER_TRACK_FM: track_type = s_t_fm; @@ -184,7 +184,7 @@ void fmdsp_vram_init(struct fmdsp *fmdsp, void fmdsp_update(struct fmdsp *fmdsp, const struct fmdriver_work *work, uint8_t *vram) { for (int t = 0; t < 10; t++) { - struct fmdriver_track_status *track = &work->track_status[t]; + const struct fmdriver_track_status *track = &work->track_status[t]; switch (track->info) { case FMDRIVER_TRACK_INFO_PPZ8: vramblit(vram, TINFO_X, TRACK_H*t+7, s_t_ppz8, TNAME_W, TNAME_H); -- cgit v1.2.3