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

Fix minor issues when building for 64-bit Windows

This commit is contained in:
Leland Lucius 2020-02-12 13:07:55 -06:00
parent 99aded10f5
commit 85219e371c
3 changed files with 5 additions and 5 deletions

View File

@ -334,7 +334,7 @@ void DirManager::RecursivelyRemove(const FilePaths& filePathArray, int count, in
} }
} }
if (progress) if (progress)
progress->Update(ii + bias, count); progress->Update(ii + bias, (size_t) count);
} }
} }
@ -690,7 +690,7 @@ DirManager::ProjectSetter::Impl::Impl(
ProgressDialog progress(XO("Progress"), ProgressDialog progress(XO("Progress"),
XO("Saving project data files")); XO("Saving project data files"));
int total = dirManager.mBlockFileHash.size(); size_t total = dirManager.mBlockFileHash.size();
bool link = moving; bool link = moving;
for (const auto &pair : dirManager.mBlockFileHash) { for (const auto &pair : dirManager.mBlockFileHash) {

View File

@ -425,7 +425,7 @@ private:
void RegenerateEffectsList(int iShowWhat); void RegenerateEffectsList(int iShowWhat);
void SetState(int i, bool toggle, bool state = true); void SetState(int i, bool toggle, bool state = true);
static int wxCALLBACK SortCompare(long item1, long item2, long sortData); static int wxCALLBACK SortCompare(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData);
int SortCompare(ItemData *item1, ItemData *item2); int SortCompare(ItemData *item1, ItemData *item2);
void OnChangedVisibility(wxCommandEvent & evt); void OnChangedVisibility(wxCommandEvent & evt);
@ -817,7 +817,7 @@ void PluginRegistrationDialog::SetState(int i, bool toggle, bool state)
} }
} }
int wxCALLBACK PluginRegistrationDialog::SortCompare(long item1, long item2, long sortData) int wxCALLBACK PluginRegistrationDialog::SortCompare(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData)
{ {
PluginRegistrationDialog *dlg = (PluginRegistrationDialog *) sortData; PluginRegistrationDialog *dlg = (PluginRegistrationDialog *) sortData;
ItemData *i1 = (ItemData *) item1; ItemData *i1 = (ItemData *) item1;

View File

@ -372,7 +372,7 @@ void ShuttleGetAutomation::Define( int & var, const wxChar * key, const int
void ShuttleGetAutomation::Define( size_t & var, const wxChar * key, const int vdefault, const int vmin, const int vmax, const int vscl ) void ShuttleGetAutomation::Define( size_t & var, const wxChar * key, const int vdefault, const int vmin, const int vmax, const int vscl )
{ {
if( !ShouldSet() ) return; if( !ShouldSet() ) return;
mpEap->Write(key, var); mpEap->Write(key, (int) var);
} }
void ShuttleGetAutomation::Define( double & var, const wxChar * key, const float vdefault, const float vmin, const float vmax, const float vscl ) void ShuttleGetAutomation::Define( double & var, const wxChar * key, const float vdefault, const float vmin, const float vmax, const float vscl )