Kaydet (Commit) 4dd7a3f1 authored tarafından Luboš Luňák's avatar Luboš Luňák

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.
üst 80e4b4e5
...@@ -460,7 +460,7 @@ int MailMerge::GetString(hchar * hstr, int ) ...@@ -460,7 +460,7 @@ int MailMerge::GetString(hchar * hstr, int )
static hchar olHanglJaso(int num, int type) static hchar olHanglJaso(int num, int type)
{ {
static const unsigned char han_init[] = 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 jung[] = { 3, 5, 7, 11, 13, 19, 20, 26, 27, 29, 30 };
static const unsigned char jung2[] = { 3, 7, 13, 20, 27, 29, 30 }; static const unsigned char jung2[] = { 3, 7, 13, 20, 27, 29, 30 };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment