Issue 1770 avoid compile error on some platforms

git-svn-id: https://zxing.googlecode.com/svn/trunk@2889 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-09-09 07:36:18 +00:00
parent 27cf98938d
commit 9a6ac33760

View file

@ -43,7 +43,8 @@ using std::string;
namespace { namespace {
void add(string& result, char character) { void add(string& result, char character) {
#ifndef NO_ICONV #ifndef NO_ICONV
char s[] = { character & 0xff }; char character2 = character & 0xff;
char s[] = {character2};
char* ss = s; char* ss = s;
size_t sl = sizeof(s); size_t sl = sizeof(s);
char d[4]; char d[4];