From 9a6ac33760ed81a699a9e9629879234111254505 Mon Sep 17 00:00:00 2001 From: "srowen@gmail.com" Date: Mon, 9 Sep 2013 07:36:18 +0000 Subject: [PATCH] Issue 1770 avoid compile error on some platforms git-svn-id: https://zxing.googlecode.com/svn/trunk@2889 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- cpp/core/src/zxing/aztec/decoder/Decoder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/core/src/zxing/aztec/decoder/Decoder.cpp b/cpp/core/src/zxing/aztec/decoder/Decoder.cpp index de505c210..4027c40fb 100644 --- a/cpp/core/src/zxing/aztec/decoder/Decoder.cpp +++ b/cpp/core/src/zxing/aztec/decoder/Decoder.cpp @@ -43,7 +43,8 @@ using std::string; namespace { void add(string& result, char character) { #ifndef NO_ICONV - char s[] = { character & 0xff }; + char character2 = character & 0xff; + char s[] = {character2}; char* ss = s; size_t sl = sizeof(s); char d[4];