From 4ac5d66dfea809d87cc4cb1c50f082878174d110 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Wed, 9 Jul 2014 15:12:30 +0100 Subject: [PATCH] tools: Only allow the absolute difference in bracket pairs to be less than 128, since we need the sign. --- tools/make_unicode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/make_unicode b/tools/make_unicode index be81ec77b7c..c8365cd9212 100755 --- a/tools/make_unicode +++ b/tools/make_unicode @@ -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;