texlive[57396] Build/source/texk/web2c/pdftexdir/ttf2afm.c: unsigned

commits+karl at tug.org commits+karl at tug.org
Tue Jan 12 03:27:38 CET 2021


Revision: 57396
          http://tug.org/svn/texlive?view=revision&revision=57396
Author:   karl
Date:     2021-01-12 03:27:37 +0100 (Tue, 12 Jan 2021)
Log Message:
-----------
unsigned char casts

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/pdftexdir/ttf2afm.c

Modified: trunk/Build/source/texk/web2c/pdftexdir/ttf2afm.c
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ttf2afm.c	2021-01-12 02:26:45 UTC (rev 57395)
+++ trunk/Build/source/texk/web2c/pdftexdir/ttf2afm.c	2021-01-12 02:27:37 UTC (rev 57396)
@@ -435,13 +435,13 @@
     if (len >= sizeof(buf))
         len = sizeof(buf) - 1;
     while (i < len) {
-        *p = get_char();
+        *p = (unsigned char) get_char();
         i++;
         if (*p == 0 && platform_id == 3) {
             /* assume this is an UTF-16BE encoded string but contains english
              * text, which is the most common case; simply copy the 2nd byte.
              * Note: will not work for non-ascii text */
-            *p = get_char();
+            *p = (unsigned char) get_char();
             i++;
         }
         p++;



More information about the tex-live-commits mailing list.