Use static_cast for explicit type conversions

This commit is contained in:
sledgehammer999
2020-04-18 15:51:38 +03:00
parent 7d23ea1f80
commit eda3747c08
4 changed files with 11 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ namespace
#if (LIBTORRENT_VERSION_NUM < 10200)
return torrentStatus.auto_managed;
#else
return bool {torrentStatus.flags & lt::torrent_flags::auto_managed};
return static_cast<bool>(torrentStatus.flags & lt::torrent_flags::auto_managed);
#endif
}
}