From 1982ebaf1fb8d59f390d75cec4b2b8a060b9d963 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 11 Feb 2009 16:07:00 +0000 Subject: [PATCH] 2009-02-12 Tatsuhiro Tsujikawa Casted to unsigned int to suppress compiler warning on netbsd. * src/BtRuntime.h --- ChangeLog | 5 +++++ src/BtRuntime.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; }