Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5710a4

Browse files
committed
Fix for Python 3
1 parent be1d7dd commit d5710a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ft2font.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ FT2Font::get_glyph_name(const Py::Tuple & args)
16171617
args.verify_length(1);
16181618

16191619
char buffer[128];
1620-
FT_UInt glyph_number = Py::Int(args[0]);
1620+
FT_UInt glyph_number = (FT_UInt)(unsigned long long)Py::Int(args[0]);
16211621

16221622
if (!FT_HAS_GLYPH_NAMES(face))
16231623
{

0 commit comments

Comments
 (0)