From aecfb8be47807cb3257547b1d3ec054a01abe0b1 Mon Sep 17 00:00:00 2001 From: rh101 Date: Thu, 2 Sep 2021 15:55:57 +1000 Subject: [PATCH] FT_StreamRec expects specific method signature with `unsigned long` --- cocos/2d/CCFontFreeType.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/2d/CCFontFreeType.cpp b/cocos/2d/CCFontFreeType.cpp index 6cd186e85e..0597e7bdd9 100644 --- a/cocos/2d/CCFontFreeType.cpp +++ b/cocos/2d/CCFontFreeType.cpp @@ -62,10 +62,10 @@ typedef struct _DataRef static std::unordered_map s_cacheFontData; // ------ freetype2 stream parsing support --- -static uint32_t ft_stream_read_callback(FT_Stream stream, - uint32_t offset, +static unsigned long ft_stream_read_callback(FT_Stream stream, + unsigned long offset, unsigned char* buf, - uint32_t size) + unsigned long size) { auto fd = (FileStream*)stream->descriptor.pointer; if (!fd)