2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Casted to unsigned int to suppress compiler warning on netbsd.
	* src/BtRuntime.h
pull/1/head
Tatsuhiro Tsujikawa 2009-02-11 16:07:00 +00:00
parent 43796accda
commit 1982ebaf1f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Casted to unsigned int to suppress compiler warning on netbsd.
* src/BtRuntime.h
2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Assign the value of tv.tv_sec to time_t timesec instead of giving Assign the value of tv.tv_sec to time_t timesec instead of giving

View File

@ -117,7 +117,7 @@ public:
void setMaxPeers(unsigned int maxPeers) void setMaxPeers(unsigned int maxPeers)
{ {
_maxPeers = maxPeers; _maxPeers = maxPeers;
_minPeers = maxPeers*0.8; _minPeers = static_cast<unsigned int>(maxPeers*0.8);
if(_minPeers == 0 && maxPeers != 0) { if(_minPeers == 0 && maxPeers != 0) {
_minPeers = maxPeers; _minPeers = maxPeers;
} }