1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

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

This commit is contained in:
andheh 2018-03-06 10:06:37 +01:00 committed by James Crook
parent 896e7a4dd5
commit b4f351a257

View File

@ -1809,7 +1809,7 @@ ProgressResult ExportMP3::Export(AudacityProject *project,
bool endOfFile;
id3_length_t id3len = AddTags(project, id3buffer, &endOfFile, metadata);
if (id3len && !endOfFile) {
if (id3len > (int)outFile.Write(id3buffer.get(), id3len)) {
if (id3len > outFile.Write(id3buffer.get(), id3len)) {
// TODO: more precise message
AudacityMessageBox(_("Unable to export"));
return ProgressResult::Cancelled;