Commit 628578c6558abe6e1106f7d23e6466c06b9ce153

Werner Lemberg 2015-01-11T08:53:31

* src/truetype/ttinterp.c (Ins_SxVTL): Simplify function call.

diff --git a/ChangeLog b/ChangeLog
index 755db2c..8b3fe5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2015-01-11  Werner Lemberg  <wl@gnu.org>
 
+	* src/truetype/ttinterp.c (Ins_SxVTL): Simplify function call.
+
+2015-01-11  Werner Lemberg  <wl@gnu.org>
+
 	* src/truetype/ttinterp.c (Normalize): Remove unused argument.
 
 2015-01-11  Werner Lemberg  <wl@gnu.org>
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index f35c5c6..b530ec8 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -2629,13 +2629,14 @@
   Ins_SxVTL( TT_ExecContext  exc,
              FT_UShort       aIdx1,
              FT_UShort       aIdx2,
-             FT_Int          aOpc,
              FT_UnitVector*  Vec )
   {
     FT_Long     A, B, C;
     FT_Vector*  p1;
     FT_Vector*  p2;
 
+    FT_Byte  opcode = exc->opcode;
+
 
     if ( BOUNDS( aIdx1, exc->zp2.n_points ) ||
          BOUNDS( aIdx2, exc->zp1.n_points ) )
@@ -2658,11 +2659,11 @@
 
     if ( A == 0 && B == 0 )
     {
-      A    = 0x4000;
-      aOpc = 0;
+      A      = 0x4000;
+      opcode = 0;
     }
 
-    if ( ( aOpc & 1 ) != 0 )
+    if ( ( opcode & 1 ) != 0 )
     {
       C =  B;   /* counter clockwise rotation */
       B =  A;
@@ -2701,7 +2702,8 @@
   Ins_SxyTCA( TT_ExecContext  exc )
   {
     FT_Short  AA, BB;
-    FT_Byte   opcode = exc->opcode;
+
+    FT_Byte  opcode = exc->opcode;
 
 
     AA = (FT_Short)( ( opcode & 1 ) << 14 );
@@ -2743,7 +2745,6 @@
     if ( Ins_SxVTL( exc,
                     (FT_UShort)args[1],
                     (FT_UShort)args[0],
-                    exc->opcode,
                     &exc->GS.projVector ) == SUCCESS )
     {
       exc->GS.dualVector = exc->GS.projVector;
@@ -2766,7 +2767,6 @@
     if ( Ins_SxVTL( exc,
                     (FT_UShort)args[1],
                     (FT_UShort)args[0],
-                    exc->opcode,
                     &exc->GS.freeVector ) == SUCCESS )
     {
       GUESS_VECTOR( projVector );
@@ -4988,7 +4988,8 @@
   {
     FT_Long    A, B, C;
     FT_UShort  p1, p2;            /* was FT_Int in pas type ERROR */
-    FT_Int     aOpc = exc->opcode;
+
+    FT_Byte  opcode = exc->opcode;
 
 
     p1 = (FT_UShort)args[1];
@@ -5017,12 +5018,12 @@
 
       if ( A == 0 && B == 0 )
       {
-        A    = 0x4000;
-        aOpc = 0;
+        A      = 0x4000;
+        opcode = 0;
       }
     }
 
-    if ( ( aOpc & 1 ) != 0 )
+    if ( ( opcode & 1 ) != 0 )
     {
       C =  B;   /* counter clockwise rotation */
       B =  A;
@@ -5041,12 +5042,12 @@
 
       if ( A == 0 && B == 0 )
       {
-        A    = 0x4000;
-        aOpc = 0;
+        A      = 0x4000;
+        opcode = 0;
       }
     }
 
-    if ( ( aOpc & 1 ) != 0 )
+    if ( ( opcode & 1 ) != 0 )
     {
       C =  B;   /* counter clockwise rotation */
       B =  A;