From 5953e2ce95dc0cb809d529c4103ae6b80f0248c0 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 4 Apr 2014 10:47:58 +0200 Subject: Remove some compilation warnings --- src/dabInputDabplusFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dabInputDabplusFile.cpp') diff --git a/src/dabInputDabplusFile.cpp b/src/dabInputDabplusFile.cpp index bd968ef..c435aba 100644 --- a/src/dabInputDabplusFile.cpp +++ b/src/dabInputDabplusFile.cpp @@ -79,7 +79,7 @@ int dabInputDabplusFileOpen(void* args, const char* filename) int dabInputDabplusFileRead(void* args, void* buffer, int size) { dabInputDabplusFileData* data = (dabInputDabplusFileData*)args; - if (data->bufferSize != size * 5) { + if (data->bufferSize != (size_t)size * 5) { if (data->buffer == NULL) { delete[] data->buffer; } @@ -90,7 +90,7 @@ int dabInputDabplusFileRead(void* args, void* buffer, int size) if (data->bufferIndex + size > data->bufferSize) { int ret = read(data->file, data->buffer, data->bufferSize); - if (ret != data->bufferSize) { + if (ret != (int)data->bufferSize) { if (ret != 0) { etiLog.log(alert, "ERROR: Incomplete DAB+ frame!\n"); } -- cgit v1.2.3