diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 22:03:58 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 22:08:56 +0200 |
commit | 4817437d31ab5f3c9969b8cc228e2f1826a0fbc2 (patch) | |
tree | 63ccba6966ce55e4eec40e354e0560b406eb9483 /src/fs/FileSystem.cxx | |
parent | 354b5a9365638068e746ca8b008171cbfe804c8a (diff) | |
download | mpd-4817437d31ab5f3c9969b8cc228e2f1826a0fbc2.tar.gz mpd-4817437d31ab5f3c9969b8cc228e2f1826a0fbc2.tar.xz mpd-4817437d31ab5f3c9969b8cc228e2f1826a0fbc2.zip |
fs/Limits: convert macro to "constexpr"
Diffstat (limited to 'src/fs/FileSystem.cxx')
-rw-r--r-- | src/fs/FileSystem.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/FileSystem.cxx b/src/fs/FileSystem.cxx index 31271cf95..7f740e3af 100644 --- a/src/fs/FileSystem.cxx +++ b/src/fs/FileSystem.cxx @@ -34,7 +34,7 @@ Path ReadLink(const Path &path) ssize_t size = readlink(path.c_str(), buffer, MPD_PATH_MAX); if (size < 0) return Path::Null(); - if (size >= MPD_PATH_MAX) { + if (size_t(size) >= MPD_PATH_MAX) { errno = ENOMEM; return Path::Null(); } |