Browse Source

make fabs explicitly float

David Rose 23 years ago
parent
commit
19b743bef3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/testbed/pgrid.cxx

+ 1 - 1
panda/src/testbed/pgrid.cxx

@@ -249,7 +249,7 @@ load_gridded_models(WindowFramework *window,
   }
   
   grid_pos_offset = -gridwidth*GRIDCELLSIZE/2.0;
-  wander_area_pos_offset = -max(fabs(grid_pos_offset), MIN_WANDERAREA_DIMENSION/2.0f);
+  wander_area_pos_offset = -max((float)fabs(grid_pos_offset), MIN_WANDERAREA_DIMENSION/2.0f);
 
   // Now walk through the list again, copying models into the scene
   // graph as we go.