aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:06:52 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:06:52 +0000
commitb60789dd8cc421151fd2d0bbd44c0635c1dabb67 (patch)
tree2674c12d06f7914e361030002a4a90ab2fb9babf /src/interface.c
parentc011ab810549394e407de215554236dfae9f8a26 (diff)
downloadmpd-b60789dd8cc421151fd2d0bbd44c0635c1dabb67.tar.gz
mpd-b60789dd8cc421151fd2d0bbd44c0635c1dabb67.tar.xz
mpd-b60789dd8cc421151fd2d0bbd44c0635c1dabb67.zip
fix sign compare warnings
Do explicit casts before comparing signed with unsigned. The one in log.c actually fixes another warning: in the expanded macro, there may be a check "logLevel>=0", which is always true. git-svn-id: https://svn.musicpd.org/mpd/trunk@7230 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index 9f0be0982..43c8b3654 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -644,7 +644,7 @@ static void flushInterfaceBuffer(Interface * interface)
if (ret < 0)
break;
else if ((size_t)ret < buf->size) {
- assert(interface->deferred_bytes >= ret);
+ assert(interface->deferred_bytes >= (size_t)ret);
interface->deferred_bytes -= ret;
buf->data = (char *)buf->data + ret;
buf->size -= ret;