Added a static_cast to avoid build issues under Windows

This commit is contained in:
Robert Osfield
2012-10-08 16:12:59 +00:00
parent 03a9786b11
commit 94e8c42569

View File

@@ -651,7 +651,7 @@ int main(int argc, char** argv)
{
movie_event_handler = new MovieEventHandler();
unsigned int num_files_per_row = std::max(osg::round(sqrt(std::min<unsigned int>(max_videos, files.size()))), 1.0);
unsigned int num_files_per_row = std::max(osg::round(sqrt(std::min(max_videos, static_cast<unsigned int>(files.size())))), 1.0);
static const float new_row_at = num_files_per_row * desired_height * 16 / 9.0;
unsigned int num_videos = 0;