File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6148,7 +6148,7 @@ bool TTF_SetFontFeatures(TTF_Font *font, char *features)
61486148 while (* cur && * cur != ' ' ) cur ++ ;
61496149 }
61506150
6151- font -> hb_features = SDL_calloc (sizeof (* font -> hb_features ), num_features );
6151+ font -> hb_features = SDL_calloc (num_features , sizeof (* font -> hb_features ));
61526152 font -> hb_features_len = num_features ;
61536153
61546154 char * cur = features ;
@@ -6243,7 +6243,7 @@ bool TTF_SetFontVariations(TTF_Font *font, char *variations)
62436243 font -> ft_variations = (FT_Variations ){0 };
62446244 return SDL_SetError ("Out of memory" );
62456245 }
6246- for (int i = 0 ; i < ft_var -> num_axis ; i ++ ) {
6246+ for (FT_UInt i = 0 ; i < ft_var -> num_axis ; i ++ ) {
62476247 font -> ft_variations .tags [i ] = ft_var -> axis [i ].tag ;
62486248 font -> ft_variations .defaults [i ] = ft_var -> axis [i ].def ;
62496249 }
@@ -6258,7 +6258,7 @@ bool TTF_SetFontVariations(TTF_Font *font, char *variations)
62586258 while (* cur && * cur != ' ' ) cur ++ ;
62596259 }
62606260
6261- font -> hb_variations = SDL_calloc (sizeof (* font -> hb_variations ), num_variations );
6261+ font -> hb_variations = SDL_calloc (num_variations , sizeof (* font -> hb_variations ));
62626262 font -> hb_variations_len = num_variations ;
62636263
62646264 char * cur = variations ;
You can’t perform that action at this time.
0 commit comments