# HG changeset patch # User al # Date 1330817669 0 # Node ID 788175a8c14aecdaa3f96d782ea0485db579bdba # Parent 863f5b2905f0b4edd5d652a0da96200170f3c352 Do not use single quotes around hex literals This is a fixup for r34781. Somehow single quotes were added to what was meant to be a C hex constant. They were not present in the original patch. This probably means 10l for Compn :) Additionally I added comments to describe what characters the hex literals stand for. Found-By: Ingo Br«äckl diff -r 863f5b2905f0 -r 788175a8c14a sub/sub_cc.c --- a/sub/sub_cc.c Sat Mar 03 23:31:28 2012 +0000 +++ b/sub/sub_cc.c Sat Mar 03 23:34:29 2012 +0000 @@ -65,16 +65,16 @@ for (i = 0; i < 128; i++) chartbl[i] = (char) i; /* now the special codes */ - chartbl[0x2a] = '0xe1'; - chartbl[0x5c] = '0xe9'; - chartbl[0x5e] = '0xed'; - chartbl[0x5f] = '0xf3'; - chartbl[0x60] = '0xfa'; - chartbl[0x7b] = '0xe7'; - chartbl[0x7c] = '0xf7'; - chartbl[0x7d] = '0xd1'; - chartbl[0x7e] = '0xf1'; - chartbl[0x7f] = '0xa4'; /* FIXME: this should be a solid block */ + chartbl[0x2a] = 0xe1; /* Latin Small Letter A with acute */ + chartbl[0x5c] = 0xe9; /* Latin Small Letter E with acute */ + chartbl[0x5e] = 0xed; /* Latin Small Letter I with acute */ + chartbl[0x5f] = 0xf3; /* Latin Small Letter O with acute */ + chartbl[0x60] = 0xfa; /* Latin Small Letter U with acute */ + chartbl[0x7b] = 0xe7; /* Latin Small Letter C with cedilla */ + chartbl[0x7c] = 0xf7; /* Division sign */ + chartbl[0x7d] = 0xd1; /* Latin Capital letter N with tilde */ + chartbl[0x7e] = 0xf1; /* Latin Small Letter N with tilde */ + chartbl[0x7f] = 0xa4; /* Currency sign FIXME: this should be a solid block */ } static void clear_buffer(subtitle *buf)