Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs
Commits:
-
751b0c3d
by Alexei Podtelezhnikov at 2023-07-25T23:45:07-04:00
1 changed file:
Changes:
... | ... | @@ -925,7 +925,7 @@ |
925 | 925 | FT_Fixed* coords;
|
926 | 926 | const char* ps_name;
|
927 | 927 | |
928 | - FT_Long instance_count;
|
|
928 | + FT_UInt instance_count;
|
|
929 | 929 | FT_UInt default_named_instance;
|
930 | 930 | FT_Var_Named_Style* named_styles;
|
931 | 931 | |
... | ... | @@ -957,14 +957,14 @@ |
957 | 957 | |
958 | 958 | /* Show named instances. */
|
959 | 959 | |
960 | - instance_count = face->style_flags >> 16;
|
|
960 | + instance_count = (FT_UInt)face->style_flags >> 16;
|
|
961 | 961 | named_styles = mm->namedstyle;
|
962 | 962 | |
963 | 963 | FT_Get_Default_Named_Instance( face, &default_named_instance );
|
964 | 964 | default_named_instance--; /* `named_styles` is a zero-based array */
|
965 | 965 | |
966 | 966 | printf( "\n" );
|
967 | - printf( " named instances (%lu)\n", instance_count );
|
|
967 | + printf( " named instances (%u)\n", instance_count );
|
|
968 | 968 | |
969 | 969 | for ( i = 0; i < instance_count; i++ )
|
970 | 970 | {
|