diff --git a/src/import/ImportPCM.cpp b/src/import/ImportPCM.cpp index 2cecd79c0..b786a484e 100644 --- a/src/import/ImportPCM.cpp +++ b/src/import/ImportPCM.cpp @@ -187,8 +187,8 @@ int PCMImportFileHandle::GetFileUncompressedBytes() static wxString AskCopyOrEdit() { wxString oldCopyPref = gPrefs->Read(wxT("/FileFormats/CopyOrEditUncompressedData"), wxT("copy")); - bool firstTimeAsk = gPrefs->Read(wxT("/Warnings/CopyOrEditUncompressedDataFirstAsk"), true); - bool oldAskPref = gPrefs->Read(wxT("/Warnings/CopyOrEditUncompressedDataAsk"), true); + bool firstTimeAsk = gPrefs->Read(wxT("/Warnings/CopyOrEditUncompressedDataFirstAsk"), true)?true:false; + bool oldAskPref = gPrefs->Read(wxT("/Warnings/CopyOrEditUncompressedDataAsk"), true)?true:false; // The first time the user is asked we force it to 'copy'. // This effectively does a one-time change to the preferences. diff --git a/src/prefs/ExtImportPrefs.cpp b/src/prefs/ExtImportPrefs.cpp index 6e043afad..89af77c60 100644 --- a/src/prefs/ExtImportPrefs.cpp +++ b/src/prefs/ExtImportPrefs.cpp @@ -401,7 +401,7 @@ void ExtImportPrefs::DoOnRuleTableSelect (int toprow) { ExtImportItems *items = wxGetApp().mImporter->GetImportItems(); - if (toprow < 0 || toprow > items->GetCount()) + if (toprow < 0 || toprow > (int)items->GetCount()) { return; }