summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-03-10 15:06:02 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-03-10 16:39:22 +0100
commit4dd7a3f12e81e3db272bc3049c6c33661d81678c (patch)
treef6ce9ad19b0db8188b366fe8b0be62379d6cb0a3
parent80e4b4e5c6cdb33dbd7aff62a71a5112ead214e2 (diff)
write unsigned char[] contents as numbers rather than string literal
The real reason for this change is that clang aborts with a fatal error in backend (http://llvm.org/bugs/show_bug.cgi?id=12226), but I'm not sure whether this was a correct construct in the first place anyway. The contents are above 0x7f, which may be outside the range of plain char, if it is signed, so maybe the result is undefined. I don't want to spend the time checking in the spec, but this new variant is technically the same and it is safe.
-rw-r--r--hwpfilter/source/hbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx
index 8d6210bd946f..1dafc7747d08 100644
--- a/hwpfilter/source/hbox.cxx
+++ b/hwpfilter/source/hbox.cxx
@@ -460,7 +460,7 @@ int MailMerge::GetString(hchar * hstr, int )
static hchar olHanglJaso(int num, int type)
{
static const unsigned char han_init[] =
- { "\x88\x90\x94\x9c\xa0\xa4\xac\xb4\xb8\xc0\xc4\xc8\xcc\xd0" };
+ { 0x88, 0x90, 0x94, 0x9c, 0xa0, 0xa4, 0xac, 0xb4, 0xb8, 0xc0, 0xc4, 0xc8, 0xcc, 0xd0 };
static const unsigned char jung[] = { 3, 5, 7, 11, 13, 19, 20, 26, 27, 29, 30 };
static const unsigned char jung2[] = { 3, 7, 13, 20, 27, 29, 30 };