[xorg-commit-diffs] xc/extras/freetype2/src/otlayout otlgsub.c, 1.1.4.1, 1.1.4.2

Egbert Eich xorg-commit at pdx.freedesktop.org
Thu Apr 15 03:14:40 PDT 2004


Committed by: eich

Update of /cvs/xorg/xc/extras/freetype2/src/otlayout
In directory pdx:/home/eich/tstbuild/xc/extras/freetype2/src/otlayout

Modified Files:
      Tag: XORG-CURRENT
	otlgsub.c 
Log Message:
2004-04-15  Egbert Eich  <eich at freedesktop.org>
        Merged changes from RELEASE-1 branch
	


Index: otlgsub.c
===================================================================
RCS file: /cvs/xorg/xc/extras/freetype2/src/otlayout/otlgsub.c,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -d -r1.1.4.1 -r1.1.4.2
--- a/otlgsub.c	26 Nov 2003 22:48:26 -0000	1.1.4.1
+++ b/otlgsub.c	15 Apr 2004 10:14:37 -0000	1.1.4.2
@@ -87,7 +87,7 @@
     OTL_Int    index;
     OTL_Bool   subst = 0;
 
-    if ( parser->context_len != 0xFFFF && parser->context_len < 1 )
+    if ( parser->context_len != 0xFFFFU && parser->context_len < 1 )
       goto Exit;
 
     gindex = otl_parser_get_gindex( parser );
@@ -107,7 +107,7 @@
           {
             OTL_Int  delta = OTL_NEXT_SHORT(p);
 
-            gindex = ( gindex + delta ) & 0xFFFF;
+            gindex = ( gindex + delta ) & 0xFFFFU;
             otl_parser_replace_1( parser, gindex );
             subst = 1;
           }
@@ -223,7 +223,7 @@
     OTL_Int    index;
     OTL_Bool   subst = 0;
 
-    if ( context_len != 0xFFFF && context_len < 1 )
+    if ( context_len != 0xFFFFU && context_len < 1 )
       goto Exit;
 
     gindex = otl_parser_get_gindex( parser );
@@ -341,7 +341,7 @@
 
     OTL_GSUB_Alternate  alternate = parser->alternate;
 
-    if ( context_len != 0xFFFF && context_len < 1 )
+    if ( context_len != 0xFFFFU && context_len < 1 )
       goto Exit;
 
     if ( alternate == NULL )




More information about the xorg-commit-diffs mailing list