shithub: freetype+ttf2subf

Download patch

ref: a93f50b61150605745771e95e8f522c2cb714ff9
parent: 82d331556ce73de07c16afd51a865ba1ff806a65
author: Alexei Podtelezhnikov <[email protected]>
date: Sat Oct 17 17:58:50 EDT 2020

* src/sfnt/sfwoff2.c (Read255UShort): Tweak types to please VC++.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2020-10-17  Alexei Podtelezhnikov  <[email protected]>
+
+	* src/sfnt/sfwoff2.c (Read255UShort): Tweak types to please VC++.
+
 2020-10-10  Werner Lemberg  <[email protected]>
 
 	* Version 2.10.3 released.
--- a/src/sfnt/sfwoff2.c
+++ b/src/sfnt/sfwoff2.c
@@ -125,10 +125,10 @@
   Read255UShort( FT_Stream   stream,
                  FT_UShort*  value )
   {
-    static const FT_Int  oneMoreByteCode1 = 255;
-    static const FT_Int  oneMoreByteCode2 = 254;
-    static const FT_Int  wordCode         = 253;
-    static const FT_Int  lowestUCode      = 253;
+    const FT_Byte    oneMoreByteCode1 = 255;
+    const FT_Byte    oneMoreByteCode2 = 254;
+    const FT_Byte    wordCode         = 253;
+    const FT_UShort  lowestUCode      = 253;
 
     FT_Error   error        = FT_Err_Ok;
     FT_Byte    code;