diff options
author | Max Kellermann <max@duempel.org> | 2008-10-26 16:26:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-26 16:26:44 +0100 |
commit | 4bc2def15c5e678ce4871cdcf97cb50887c6468a (patch) | |
tree | 55bbb89b5cdc4b8578525eab02aed5934446043c /src | |
parent | 4fa36a15bfa8237d2741adbf6198cf11301c3e8f (diff) | |
download | mpd-4bc2def15c5e678ce4871cdcf97cb50887c6468a.tar.gz mpd-4bc2def15c5e678ce4871cdcf97cb50887c6468a.tar.xz mpd-4bc2def15c5e678ce4871cdcf97cb50887c6468a.zip |
stored_playlist: fixed signed comparison warning
Cast playlist_max_length to off_t before comparing it to stat.st_size.
Diffstat (limited to '')
-rw-r--r-- | src/stored_playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stored_playlist.c b/src/stored_playlist.c index 18cd84305..28975c3a8 100644 --- a/src/stored_playlist.c +++ b/src/stored_playlist.c @@ -332,7 +332,7 @@ spl_append_song(const char *utf8path, struct song *song) return PLAYLIST_RESULT_ERRNO; } - if (st.st_size >= ((MPD_PATH_MAX+1) * playlist_max_length)) { + if (st.st_size >= ((MPD_PATH_MAX+1) * (off_t)playlist_max_length)) { while (fclose(file) != 0 && errno == EINTR); return PLAYLIST_RESULT_TOO_LARGE; } |