From 7b42551a20082cc8fb25bfd82daa40470d21240e Mon Sep 17 00:00:00 2001 From: Vladimir Kolesnikov Date: Sun, 10 Feb 2013 16:25:44 +0200 Subject: [PATCH] Fix -Wsequence-point warning --- src/quotedprintable.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/quotedprintable.cpp b/src/quotedprintable.cpp index 3b901f4..34d170c 100644 --- a/src/quotedprintable.cpp +++ b/src/quotedprintable.cpp @@ -52,7 +52,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 {