diff --git a/src/cassette.cpp b/src/cassette.cpp index 5a1691f..fad32f6 100644 --- a/src/cassette.cpp +++ b/src/cassette.cpp @@ -65,7 +65,7 @@ static int askSave() { nullptr, "You have unsaved changes to your tape image.\nDo you want to SAVE them?", "Save changes", - wxYES_NO|wxCANCEL|wxCANCEL_DEFAULT}; + (long)(wxYES_NO|wxCANCEL|wxCANCEL_DEFAULT)}; return dlg->ShowModal(); } diff --git a/src/emulator.cpp b/src/emulator.cpp index 75b19a7..3c10053 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -488,7 +488,7 @@ static int askSave() { nullptr, "You have unsaved changes to your floppy disk images.\nDo you want to SAVE them?", "Save changes", - wxYES_NO|wxCANCEL|wxCANCEL_DEFAULT}; + (long)(wxYES_NO|wxCANCEL|wxCANCEL_DEFAULT)}; return dlg->ShowModal(); }