diff options
author | Jory Pratt <anarchy@gentoo.org> | 2022-04-08 16:38:22 -0500 |
---|---|---|
committer | Jory Pratt <anarchy@gentoo.org> | 2022-04-08 16:38:22 -0500 |
commit | 63271ea13d28064c46755127d950595d2dbbcfcb (patch) | |
tree | 2435805f05ea7bcad70774a60fd5919db5a49efd /net-wireless/qdmr/files/qdmr-0.10.2-fix-cast-to-int.patch | |
parent | net-wireless/qdmr: Version bump 0.10.2 (diff) | |
download | anarchy-master.tar.gz anarchy-master.tar.bz2 anarchy-master.zip |
Signed-off-by: Jory Pratt <anarchy@gentoo.org>
Diffstat (limited to 'net-wireless/qdmr/files/qdmr-0.10.2-fix-cast-to-int.patch')
-rw-r--r-- | net-wireless/qdmr/files/qdmr-0.10.2-fix-cast-to-int.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/net-wireless/qdmr/files/qdmr-0.10.2-fix-cast-to-int.patch b/net-wireless/qdmr/files/qdmr-0.10.2-fix-cast-to-int.patch deleted file mode 100644 index 3ce9e0e..0000000 --- a/net-wireless/qdmr/files/qdmr-0.10.2-fix-cast-to-int.patch +++ /dev/null @@ -1,37 +0,0 @@ -From eca81fba54b156707545967b78c823cc38b1b53f Mon Sep 17 00:00:00 2001 -From: Hannes Matuschek <hmatuschek@gmail.com> -Date: Wed, 6 Apr 2022 15:29:02 +0200 -Subject: [PATCH 1/2] Fixed compilation issue under Genoo. Addresses #216. - ---- - lib/radiolimits.cc | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/lib/radiolimits.cc b/lib/radiolimits.cc -index b883cc8..eb72166 100644 ---- a/lib/radiolimits.cc -+++ b/lib/radiolimits.cc -@@ -3,9 +3,10 @@ - #include "logger.hh" - #include "config.hh" - #include <QMetaProperty> -+#include <ctype.h> - - // Utility function to check string content for ASCII encoding --inline bool isascii(const QString &text) { -+inline bool qstring_is_ascii(const QString &text) { - foreach (QChar c, text) { - if ((c<0x1f) && (0x7f != c)) - return false; -@@ -205,7 +206,7 @@ RadioLimitString::verify(const ConfigItem *item, const QMetaProperty &prop, Radi - << ") is shorter than minimum size " << _minLen << "."; - } - -- if ((ASCII == _encoding) && (! isascii(value))) { -+ if ((ASCII == _encoding) && (! qstring_is_ascii(value))) { - auto &msg = context.newMessage(); - msg << "Cannot encode string '" << value << "' in ASCII."; - } --- -2.35.1 - |