@@ -2203,8 +2203,9 @@ void LoadMtl(std::map<std::string, int> *material_map,
22032203 }
22042204
22052205 // bump texture
2206- if ((0 == strncmp (token, " map_bump" , 8 )) && IS_SPACE (token[8 ]) ||
2207- (0 == strncmp (token, " map_Bump" , 8 )) && IS_SPACE (token[8 ])) {
2206+ if (((0 == strncmp (token, " map_bump" , 8 )) ||
2207+ (0 == strncmp (token, " map_Bump" , 8 ))) &&
2208+ IS_SPACE (token[8 ])) {
22082209 token += 9 ;
22092210 ParseTextureNameAndOption (&(material.bump_texname ),
22102211 &(material.bump_texopt ), token);
@@ -2229,8 +2230,9 @@ void LoadMtl(std::map<std::string, int> *material_map,
22292230 }
22302231
22312232 // displacement texture
2232- if ((0 == strncmp (token, " map_disp" , 8 )) && IS_SPACE (token[8 ]) ||
2233- (0 == strncmp (token, " map_Disp" , 8 )) && IS_SPACE (token[8 ])) {
2233+ if (((0 == strncmp (token, " map_disp" , 8 )) ||
2234+ (0 == strncmp (token, " map_Disp" , 8 ))) &&
2235+ IS_SPACE (token[8 ])) {
22342236 token += 9 ;
22352237 ParseTextureNameAndOption (&(material.displacement_texname ),
22362238 &(material.displacement_texopt ), token);
0 commit comments