diff --git a/ChangeLog b/ChangeLog index 6962aee5..de738ad8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-12 Tatsuhiro Tsujikawa + + Casted to unsigned int to suppress compiler warning on netbsd. + * src/BtRuntime.h + 2009-02-12 Tatsuhiro Tsujikawa Assign the value of tv.tv_sec to time_t timesec instead of giving diff --git a/src/BtRuntime.h b/src/BtRuntime.h index 35268a87..9fb4f45a 100644 --- a/src/BtRuntime.h +++ b/src/BtRuntime.h @@ -117,7 +117,7 @@ public: void setMaxPeers(unsigned int maxPeers) { _maxPeers = maxPeers; - _minPeers = maxPeers*0.8; + _minPeers = static_cast(maxPeers*0.8); if(_minPeers == 0 && maxPeers != 0) { _minPeers = maxPeers; }