tools: Only allow the absolute difference in bracket pairs to be less than 128, since we need the sign.

Huw Davies huw at codeweavers.com
Wed Jul 9 09:12:30 CDT 2014


---
 tools/make_unicode | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/make_unicode b/tools/make_unicode
index be81ec7..c8365cd 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;
-- 
1.8.0




More information about the wine-patches mailing list