1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

fixed a "signed vs. unsigned" warning in ImportMP3.cpp

This commit is contained in:
andheh 2018-02-27 10:11:40 +01:00 committed by James Crook
parent ed83ec73b3
commit 9f8d3a48d4

View File

@ -86,7 +86,7 @@ extern "C" {
#include "../WaveTrack.h" #include "../WaveTrack.h"
#define INPUT_BUFFER_SIZE 65535u #define INPUT_BUFFER_SIZE 65535
#define PROGRESS_SCALING_FACTOR 100000 #define PROGRESS_SCALING_FACTOR 100000
/* this is a private structure we can use for whatever we like, and it will get /* this is a private structure we can use for whatever we like, and it will get
@ -94,7 +94,7 @@ extern "C" {
* things. */ * things. */
struct private_data { struct private_data {
wxFile *file; /* the file containing the mp3 data we're feeding the encoder */ wxFile *file; /* the file containing the mp3 data we're feeding the encoder */
ArrayOf<unsigned char> inputBuffer{ INPUT_BUFFER_SIZE }; ArrayOf<unsigned char> inputBuffer{ static_cast<unsigned int>(INPUT_BUFFER_SIZE) };
int inputBufferFill; /* amount of data in inputBuffer */ int inputBufferFill; /* amount of data in inputBuffer */
TrackFactory *trackFactory; TrackFactory *trackFactory;
TrackHolders channels; TrackHolders channels;