mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 15:25:32 +00:00
tools: Only allow the absolute difference in bracket pairs to be less than 128, since we need the sign.
This commit is contained in:
parent
9329e996b4
commit
4ac5d66dfe
|
@ -1345,7 +1345,7 @@ sub dump_bracket($)
|
|||
{
|
||||
my $type = $3;
|
||||
die "unknown bracket $type" unless defined $bracket_types{$type};
|
||||
die "characters too distant $1 and $2" if abs(hex($2) - hex($1)) >= 256;
|
||||
die "characters too distant $1 and $2" if abs(hex($2) - hex($1)) >= 128;
|
||||
$bracket_table[hex $1] = (hex($2) - hex($1)) % 255;
|
||||
$bracket_table[hex $1] += $bracket_types{$type} << 8;
|
||||
next;
|
||||
|
|
Loading…
Reference in a new issue