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

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 9 14:35:20 CDT 2014


Module: wine
Branch: master
Commit: 4ac5d66dfea809d87cc4cb1c50f082878174d110
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4ac5d66dfea809d87cc4cb1c50f082878174d110

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Jul  9 15:12:30 2014 +0100

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 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;




More information about the wine-cvs mailing list