Cast enum to unsigned

This commit is contained in:
jcorporation 2022-09-20 20:27:25 +02:00
parent 48a936ef5b
commit eb3baf7e99

View File

@ -92,7 +92,7 @@ playlist_state_save(BufferedOutputStream &os, const struct playlist &playlist,
os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_REPEAT "{}\n"), os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_REPEAT "{}\n"),
(unsigned)playlist.queue.repeat); (unsigned)playlist.queue.repeat);
os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_SINGLE "{}\n"), os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_SINGLE "{}\n"),
(int)playlist.queue.single); (unsigned)playlist.queue.single);
os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CONSUME "{}\n"), os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CONSUME "{}\n"),
(unsigned)playlist.queue.consume); (unsigned)playlist.queue.consume);
os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CROSSFADE "{}\n"), os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CROSSFADE "{}\n"),