shithub: freetype+ttf2subf

Download patch

ref: 6870f4cf1ad4c264d16f4073c50e86c37b5fccc8
parent: 5dea44438f74324403cb2974a5701cac7ceab32a
author: Werner Lemberg <[email protected]>
date: Sat Aug 18 01:09:42 EDT 2001

* src/base/ftcalc.c (FT_MulDiv): Fixed serious typo.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-08-17  Martin Muskens  <[email protected]>
+
+	* src/base/ftcalc.c (FT_MulDiv): Fixed serious typo.
+
 2001-08-12  Werner Lemberg  <[email protected]>
 
 	Updating to OpenType 1.3.
--- a/src/base/ftcalc.c
+++ b/src/base/ftcalc.c
@@ -174,7 +174,7 @@
     if ( c < 0 ) { c = -c; s = -s; }
 
     d = (FT_Long)( c > 0 ? ( (FT_Int64)a * b + ( c >> 1 ) ) / c
-                : 0x7FFFFFFFL );
+                         : 0x7FFFFFFFL );
 
     return ( s > 0 ) ? d : -d;
   }
@@ -386,7 +386,7 @@
       temp2.hi = 0;
       temp2.lo = (FT_UInt32)(c >> 1);
       FT_Add64( &temp, &temp2, &temp );
-      a = ft_div64by32( temp.hi, temp.lo, b );
+      a = ft_div64by32( temp.hi, temp.lo, c );
     }
     else
       a = 0x7FFFFFFFL;