From: <aar...@us...> - 2007-01-29 19:41:02
|
Revision: 26282 http://svn.sourceforge.net/crystal/?rev=26282&view=rev Author: aarobber Date: 2007-01-29 10:50:39 -0800 (Mon, 29 Jan 2007) Log Message: ----------- fixed a warning from checking if an unsigned is >= 0 Modified Paths: -------------- CS/trunk/docs/history.txt CS/trunk/include/csgeom/frustum.h Modified: CS/trunk/docs/history.txt =================================================================== --- CS/trunk/docs/history.txt 2007-01-29 14:41:13 UTC (rev 26281) +++ CS/trunk/docs/history.txt 2007-01-29 18:50:39 UTC (rev 26282) @@ -7,6 +7,7 @@ chronological order. 29-Jan-2007 + - Andrew Robberts fixed a warning from checking if an unsigned is >= 0. - Jorrit reverted a change from Genjix yesterday. /bin/bash doesn't exist on mingw. - res rigged (the deprecated) csutil/profile.h to emit a warning when Modified: CS/trunk/include/csgeom/frustum.h =================================================================== --- CS/trunk/include/csgeom/frustum.h 2007-01-29 14:41:13 UTC (rev 26281) +++ CS/trunk/include/csgeom/frustum.h 2007-01-29 18:50:39 UTC (rev 26282) @@ -280,7 +280,7 @@ */ inline csVector3& GetVertex (size_t idx) { - CS_ASSERT (idx >= 0 && idx < num_vertices); + CS_ASSERT (idx < num_vertices); return vertices[idx]; } @@ -289,7 +289,7 @@ */ inline const csVector3& GetVertex (size_t idx) const { - CS_ASSERT (idx >= 0 && idx < num_vertices); + CS_ASSERT (idx < num_vertices); return vertices[idx]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |