Skip to content

Commit

Permalink
MSVC compiler warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arnholm committed May 12, 2017
1 parent dc0bed1 commit 7375d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xcsg/boolean_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ void boolean_timer::add_elapsed(double esec)
int millisec = static_cast<int>(1000*esec);
m_elapsed_millisec += millisec;
m_nbool++;
m_progress = (1000.0*m_nbool)/m_nbool_tot;
m_progress = static_cast<unsigned int>((1000.0*m_nbool)/m_nbool_tot);

// report progress at every 5% progress
if( (m_progress - m_progress_report) >= 50) {
size_t p = m_progress;
unsigned int p = m_progress;
m_progress_report = p;

double percent = m_progress*0.1;
Expand Down

0 comments on commit 7375d57

Please sign in to comment.