Add some casting to keep MSVC happy
authorJohn Emmas <johne53@tiscali.co.uk>
Thu, 24 Sep 2015 08:06:19 +0000 (09:06 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Thu, 24 Sep 2015 08:06:19 +0000 (09:06 +0100)
libs/evoral/src/libsmf/smf.c

index 7b623210e97f3915efb0a6b515e05677bdff33f7..67cc7b889e7b8c48a4c67d892b2615ea7315c098 100644 (file)
@@ -136,7 +136,7 @@ smf_track_delete(smf_track_t *track)
        /* Remove all the events */
        unsigned int i;
        for (i = 0; i < track->events_array->len; ++i) {
-               smf_event_t* ev = g_ptr_array_index(track->events_array, i);
+               smf_event_t* ev = (smf_event_t*)g_ptr_array_index(track->events_array, i);
                free (ev->midi_buffer);
                free (ev);
        }