From a2380928dbc4d46c7bc3104df2dee47219db4b93 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:15:40 +0000 Subject: [PATCH] use size_t for pcm_sizeOfConvBuffer() result In my previous patch set, I forgot to change the pcm_sizeOfConvBuffer() invocation in convertAudioFormat() to also use size_t. git-svn-id: https://svn.musicpd.org/mpd/trunk@7292 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audioOutput.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/audioOutput.c b/src/audioOutput.c index d2fb2d776..f0515979e 100644 --- a/src/audioOutput.c +++ b/src/audioOutput.c @@ -184,11 +184,11 @@ int openAudioOutput(AudioOutput * audioOutput, AudioFormat * audioFormat) static void convertAudioFormat(AudioOutput * audioOutput, char **chunkArgPtr, int *sizeArgPtr) { - int size = pcm_sizeOfConvBuffer(&(audioOutput->inAudioFormat), - *sizeArgPtr, - &(audioOutput->outAudioFormat)); + size_t size = pcm_sizeOfConvBuffer(&(audioOutput->inAudioFormat), + *sizeArgPtr, + &(audioOutput->outAudioFormat)); - if (size > audioOutput->convBufferLen) { + if (size > (size_t)audioOutput->convBufferLen) { audioOutput->convBuffer = xrealloc(audioOutput->convBuffer, size); audioOutput->convBufferLen = size;