Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2009, 11:53:35 PM (15 years ago)
Author:
rgrieder
Message:

Found a few more C-Style casts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/Game.cc

    r3280 r3300  
    287287                assert(it != this->statisticsTickTimes_.end());
    288288                int64_t lastTime = currentTime - this->configuration_->statisticsAvgLength_;
    289                 if ((int64_t)it->tickTime < lastTime)
     289                if (static_cast<int64_t>(it->tickTime) < lastTime)
    290290                {
    291291                    do
     
    295295                        ++it;
    296296                        assert(it != this->statisticsTickTimes_.end());
    297                     } while ((int64_t)it->tickTime < lastTime);
     297                    } while (static_cast<int64_t>(it->tickTime) < lastTime);
    298298                    this->statisticsTickTimes_.erase(this->statisticsTickTimes_.begin(), it);
    299299                }
Note: See TracChangeset for help on using the changeset viewer.