diff options
Diffstat (limited to 'gui/wxsiggen.cpp')
-rw-r--r-- | gui/wxsiggen.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/wxsiggen.cpp b/gui/wxsiggen.cpp index f6abce8..627f1ae 100644 --- a/gui/wxsiggen.cpp +++ b/gui/wxsiggen.cpp @@ -79,7 +79,9 @@ void SiggenDialog::onSourceChange(wxCommandEvent& ce) return; m_result.Clear(); - if (int selection = radio->GetSelection(); selection >= 0 && selection < Sources.size()) { + if (unsigned int selection = static_cast<unsigned int>(radio->GetSelection()); + selection < Sources.size()) + { m_instruction->SetLabel(Instructions[selection]); m_source_list->Show(selection == 0); m_source_math->Show(selection == 1); |