From b60789dd8cc421151fd2d0bbd44c0635c1dabb67 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:06:52 +0000 Subject: 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 --- src/outputBuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/outputBuffer.c') diff --git a/src/outputBuffer.c b/src/outputBuffer.c index cda56d4b1..15b7b26d9 100644 --- a/src/outputBuffer.c +++ b/src/outputBuffer.c @@ -75,7 +75,7 @@ void clearOutputBuffer(OutputBuffer * cb) void flushOutputBuffer(OutputBuffer * cb) { if (currentChunk == cb->end) { - if ((cb->end + 1) >= buffered_chunks) { + if (((unsigned)cb->end + 1) >= buffered_chunks) { cb->end = 0; } else cb->end++; -- cgit v1.2.3