From 4817437d31ab5f3c9969b8cc228e2f1826a0fbc2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 22:03:58 +0200 Subject: fs/Limits: convert macro to "constexpr" --- src/PlaylistFile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PlaylistFile.cxx') diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx index a82acc1f8..19085f496 100644 --- a/src/PlaylistFile.cxx +++ b/src/PlaylistFile.cxx @@ -384,7 +384,7 @@ spl_append_song(const char *utf8path, Song *song, Error &error) return false; } - if (st.st_size / (MPD_PATH_MAX + 1) >= (off_t)playlist_max_length) { + if (st.st_size / off_t(MPD_PATH_MAX + 1) >= (off_t)playlist_max_length) { fclose(file); error.Set(playlist_domain, PLAYLIST_RESULT_TOO_LARGE, "Stored playlist is too large"); -- cgit v1.2.3