Newer
Older
Import / applications / MakePDF / 3rdParty / libharu / unicode / ch3.diff
@John John on 29 Dec 2020 457 bytes bulk import from macbookpro checkouts
diff --git a/src/hpdf_font.c b/src/hpdf_font.c
index d23343e..f5db87d 100644
--- a/src/hpdf_font.c
+++ b/src/hpdf_font.c
@@ -1319,7 +1319,7 @@ HPDF_Font_ConvertText  (HPDF_Font        font,
             else
                 dst += UCS4TO_FNS[attr->encoder->charenc] (dst, '-');
         }
-        attr->text_cache_len = dst - attr->text_cache;
+        attr->text_cache_len = (HPDF_UINT)(dst - attr->text_cache);
     }
 
     /* set relief font index */