diff --git a/Software/PC_Application/LibreVNA-GUI/CustomWidgets/siunitedit.cpp b/Software/PC_Application/LibreVNA-GUI/CustomWidgets/siunitedit.cpp index f0c2164..beeb825 100644 --- a/Software/PC_Application/LibreVNA-GUI/CustomWidgets/siunitedit.cpp +++ b/Software/PC_Application/LibreVNA-GUI/CustomWidgets/siunitedit.cpp @@ -70,7 +70,7 @@ bool SIUnitEdit::eventFilter(QObject *, QEvent *event) key = tolower(key); } if(key <= 255) { - if (prefixes.indexOf(key) >= 0) { + if (prefixes.indexOf(static_cast(key)) >= 0) { // a valid prefix key was pressed parseNewValue(Unit::SIPrefixToFactor(key)); continueEditing();