@@ -492,7 +492,7 @@ static int face_var_get_axis_infos(lua_State *L) {
492492 hb_ot_var_get_axis_infos (* face , start , & count , axis_infos );
493493
494494 lua_createtable (L , count , 0 );
495- for (int i = 0 ; i != count ; i ++ ) {
495+ for (unsigned int i = 0 ; i != count ; i ++ ) {
496496 push_axis_info (L , axis_infos + i );
497497 lua_seti (L , -2 , i + 1 );
498498 }
@@ -549,7 +549,7 @@ static int face_var_named_instance_get_design_coords(lua_State *L) {
549549 unsigned int count = STATIC_ARRAY_SIZE ;
550550 count = hb_ot_var_named_instance_get_design_coords (* face , index , & count , coords );
551551
552- for (int i = 0 ; i != count ; i ++ ) {
552+ for (unsigned int i = 0 ; i != count ; i ++ ) {
553553 lua_pushnumber (L , coords [i ]);
554554 }
555555 return count ;
@@ -570,7 +570,7 @@ static int face_var_normalize_variations(lua_State *L) {
570570 int normalized [STATIC_ARRAY_SIZE ];
571571 hb_ot_var_normalize_variations (* face , variations , count , normalized , coord_count );
572572
573- for (int i = 0 ; i != coord_count ; i ++ ) {
573+ for (unsigned int i = 0 ; i != coord_count ; i ++ ) {
574574 lua_pushinteger (L , normalized [i ]);
575575 }
576576 return coord_count ;
@@ -590,7 +590,7 @@ static int face_var_normalize_coords(lua_State *L) {
590590 int normalized [STATIC_ARRAY_SIZE ];
591591 hb_ot_var_normalize_coords (* face , count , coords , normalized );
592592
593- for (int i = 0 ; i != count ; i ++ ) {
593+ for (unsigned int i = 0 ; i != count ; i ++ ) {
594594 lua_pushinteger (L , normalized [i ]);
595595 }
596596 return count ;
0 commit comments