@@ -57,7 +57,7 @@ get_shading() const {
5757 if (!first_component->has_normal ()) {
5858 first_component = this ;
5959 }
60- for (int i = 1 ; i < get_num_components (); i++ ) {
60+ for (size_t i = 1 ; i < get_num_components (); ++i ) {
6161 const EggAttributes *component = get_component (i);
6262 if (!component->has_normal ()) {
6363 component = this ;
@@ -74,7 +74,7 @@ get_shading() const {
7474 if (!first_component->has_color ()) {
7575 first_component = this ;
7676 }
77- for (int i = 1 ; i < get_num_components (); i++ ) {
77+ for (size_t i = 1 ; i < get_num_components (); ++i ) {
7878 const EggAttributes *component = get_component (i);
7979 if (!component->has_color ()) {
8080 component = this ;
@@ -295,7 +295,7 @@ apply_last_attribute() {
295295 // The first component gets applied to the third vertex, and so on from
296296 // there.
297297 int num_lead_vertices = get_num_lead_vertices ();
298- for (int i = 0 ; i < get_num_components (); i++ ) {
298+ for (size_t i = 0 ; i < get_num_components (); ++i ) {
299299 EggAttributes *component = get_component (i);
300300 do_apply_flat_attribute (i + num_lead_vertices, component);
301301 }
@@ -313,7 +313,7 @@ void EggCompositePrimitive::
313313apply_first_attribute () {
314314 // The first component gets applied to the first vertex, and so on from
315315 // there.
316- for (int i = 0 ; i < get_num_components (); i++ ) {
316+ for (size_t i = 0 ; i < get_num_components (); ++i ) {
317317 EggAttributes *component = get_component (i);
318318 do_apply_flat_attribute (i, component);
319319 }
0 commit comments