From 649ea303368d424c57a12e4f94d9b198d0a5fe8b Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sun, 20 Jul 2014 10:27:23 +0300 Subject: [PATCH] Update quotedprintable.cpp Some compilators can interpret this differently (gcc shows warning about this) --- src/quotedprintable.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/quotedprintable.cpp b/src/quotedprintable.cpp index 81af8e3..dddd180 100644 --- a/src/quotedprintable.cpp +++ b/src/quotedprintable.cpp @@ -56,7 +56,8 @@ QByteArray& QuotedPrintable::decode(const QString &input) { if (input.at(i).toLatin1() == '=') { - output->append((hexVal[input.at(++i).toLatin1() - '0'] << 4) + hexVal[input.at(++i).toLatin1() - '0']); + output->append((hexVal[input.at(i + 1).toLatin1() - '0'] << 4) + hexVal[input.at(i + 2).toLatin1() - '0']); + i += 2; } else {