|
From: <br...@us...> - 2008-08-21 07:47:48
|
Revision: 3518
http://openvrml.svn.sourceforge.net/openvrml/?rev=3518&view=rev
Author: braden
Date: 2008-08-21 07:47:56 +0000 (Thu, 21 Aug 2008)
Log Message:
-----------
Quell some warnings from gcc about comparing signed and unsigned types.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/libopenvrml-gl/openvrml/gl/viewer.cpp
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-08-15 22:51:59 UTC (rev 3517)
+++ trunk/ChangeLog 2008-08-21 07:47:56 UTC (rev 3518)
@@ -1,3 +1,14 @@
+2008-08-21 Braden McDaniel <br...@en...>
+
+ * src/libopenvrml-gl/openvrml/gl/viewer.cpp
+ (openvrml::gl::viewer::do_insert_shell(unsigned int, const
+ std::vector<vec3f> & coord, const std::vector<int32> &
+ coord_index, const std::vector<color> & color, const
+ std::vector<int32> & color_index, const std::vector<vec3f> &
+ normal, const std::vector<int32> & normal_index, const
+ std::vector<vec2f> & tex_coord, const std::vector<int32> &
+ tex_coord_index)): Quell some warnings from gcc.
+
2008-08-15 Braden McDaniel <br...@en...>
* src/libopenvrml/openvrml/browser.cpp
Modified: trunk/src/libopenvrml-gl/openvrml/gl/viewer.cpp
===================================================================
--- trunk/src/libopenvrml-gl/openvrml/gl/viewer.cpp 2008-08-15 22:51:59 UTC (rev 3517)
+++ trunk/src/libopenvrml-gl/openvrml/gl/viewer.cpp 2008-08-21 07:47:56 UTC (rev 3518)
@@ -3072,7 +3072,7 @@
i < color_index.size();
++i) {
if (color_index[i] < 0) { continue; }
- if (!(coord_index[i] < coord.size())) { continue; }
+ if (!(size_t(coord_index[i]) < coord.size())) { continue; }
vertices[coord_index[i]].color = &color[color_index[i]];
}
}
@@ -3089,7 +3089,7 @@
i < normal_index.size();
++i) {
if (normal_index[i] < 0) { continue; }
- if (!(coord_index[i] < coord.size())) { continue; }
+ if (!(size_t(coord_index[i]) < coord.size())) { continue; }
vertices[coord_index[i]].normal = &normal[normal_index[i]];
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|