From e12cc850db3baf7a1d1761e945450334a632f176 Mon Sep 17 00:00:00 2001 From: Alexander Voronov Date: Fri, 24 Mar 2023 22:01:53 +0300 Subject: [PATCH] LibreVNA-GUI:CustomWidgets:siunitedit: Fix ambiguous conversion This commit adds a static_cast to the 'QChar' for the keycode if it is less than or equal to 255. --- .../PC_Application/LibreVNA-GUI/CustomWidgets/siunitedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();