Browse Source

fix compiler warning

David Rose 17 years ago
parent
commit
ad2bb4e6ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/grutil/geoMipTerrain.cxx

+ 2 - 2
panda/src/grutil/geoMipTerrain.cxx

@@ -335,8 +335,8 @@ PNMImage GeoMipTerrain::
 make_slope_image() {
   PNMImage result (_xsize, _ysize);
   result.make_grayscale();
-  for (int x = 0; x < _xsize; ++x) {
-    for (int y = 0; y < _ysize; ++y) {
+  for (unsigned int x = 0; x < _xsize; ++x) {
+    for (unsigned int y = 0; y < _ysize; ++y) {
       LVector3f normal (get_normal(x, y));
       normal.set(normal.get_x() / _root.get_sx(),
                  normal.get_y() / _root.get_sy(),