From: Torsten Dreyer Date: Sat, 22 May 2010 21:40:07 +0000 (+0200) Subject: Fix a gcc warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=399d2bc73c2231b647bc945485bae88ae26eca3d;p=simgear.git Fix a gcc warning --- diff --git a/simgear/scene/material/EffectBuilder.hxx b/simgear/scene/material/EffectBuilder.hxx index e9c7b6a9..6a5547bd 100644 --- a/simgear/scene/material/EffectBuilder.hxx +++ b/simgear/scene/material/EffectBuilder.hxx @@ -314,7 +314,7 @@ getVectorProperties(const SGPropertyNode* prop, if (parentName[parentName.size() - 1] != '/') parentName.append("/"); NameItr itr = defaultNames; - for (int i = 0; i < vecSize; ++i, ++itr) + for (size_t i = 0; i < vecSize; ++i, ++itr) result.push_back(parentName + *itr); } else if (useProps.size() == vecSize) { string parentName = useProps[0]->getStringValue();