fix warning

This commit is contained in:
Arvid Norberg 2009-05-25 09:32:50 +00:00
parent 2cfb4e8205
commit 0f6a89f0c0
1 changed files with 2 additions and 2 deletions

View File

@ -122,9 +122,9 @@ namespace libtorrent
inline bool operator>=(time_duration lhs, time_duration rhs)
{ return lhs.diff >= rhs.diff; }
inline time_duration operator*(time_duration lhs, float rhs)
{ return time_duration(lhs.diff * rhs); }
{ return time_duration(boost::int64_t(lhs.diff * rhs)); }
inline time_duration operator*(float lhs, time_duration rhs)
{ return time_duration(lhs * rhs.diff); }
{ return time_duration(boost::int64_t(lhs * rhs.diff)); }
// libtorrent time type
struct ptime