From 9f8d3a48d44b0afae4e858254e85c8a0a674f3c5 Mon Sep 17 00:00:00 2001 From: andheh <36114788+andheh@users.noreply.github.com> Date: Tue, 27 Feb 2018 10:11:40 +0100 Subject: [PATCH] fixed a "signed vs. unsigned" warning in ImportMP3.cpp --- src/import/ImportMP3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/import/ImportMP3.cpp b/src/import/ImportMP3.cpp index ceb2a0473..9b410ca59 100644 --- a/src/import/ImportMP3.cpp +++ b/src/import/ImportMP3.cpp @@ -86,7 +86,7 @@ extern "C" { #include "../WaveTrack.h" -#define INPUT_BUFFER_SIZE 65535u +#define INPUT_BUFFER_SIZE 65535 #define PROGRESS_SCALING_FACTOR 100000 /* this is a private structure we can use for whatever we like, and it will get @@ -94,7 +94,7 @@ extern "C" { * things. */ struct private_data { wxFile *file; /* the file containing the mp3 data we're feeding the encoder */ - ArrayOf inputBuffer{ INPUT_BUFFER_SIZE }; + ArrayOf inputBuffer{ static_cast(INPUT_BUFFER_SIZE) }; int inputBufferFill; /* amount of data in inputBuffer */ TrackFactory *trackFactory; TrackHolders channels;