summaryrefslogtreecommitdiffstats
path: root/src/dabInputDabplusFile.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-04 10:47:58 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-04 11:07:37 +0200
commit5953e2ce95dc0cb809d529c4103ae6b80f0248c0 (patch)
tree5ef857b37b4ab889e8d8f56c010283f77821a8c1 /src/dabInputDabplusFile.cpp
parent2e325d2c2a34ecda37636e67969ee1550e78fbba (diff)
downloaddabmux-5953e2ce95dc0cb809d529c4103ae6b80f0248c0.tar.gz
dabmux-5953e2ce95dc0cb809d529c4103ae6b80f0248c0.tar.bz2
dabmux-5953e2ce95dc0cb809d529c4103ae6b80f0248c0.zip
Remove some compilation warnings
Diffstat (limited to 'src/dabInputDabplusFile.cpp')
-rw-r--r--src/dabInputDabplusFile.cpp4
1 files changed, 2 insertions, 2 deletions
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");
}