diff --git a/include/libtorrent/alert.hpp b/include/libtorrent/alert.hpp index 5991e5cff..a97660ae6 100644 --- a/include/libtorrent/alert.hpp +++ b/include/libtorrent/alert.hpp @@ -144,7 +144,7 @@ namespace libtorrent #ifndef TORRENT_NO_DEPRECATE // Alerts on RSS related events, like feeds being updated, feed error - // conditions and successful RSS feed updates. Enabling this categoty + // conditions and successful RSS feed updates. Enabling this category // will make you receive rss_alert alerts. rss_notification = 0x1000, #endif diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 24f8e0fa4..5b9e4bfd4 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -1565,7 +1565,7 @@ namespace libtorrent // This alert is posted approximately once every second, and it contains // byte counters of most statistics that's tracked for torrents. Each active // torrent posts these alerts regularly. - // This alert has been superceded by calling ``post_torrent_updates()`` + // This alert has been superseded by calling ``post_torrent_updates()`` // regularly on the session object. This alert will be removed struct TORRENT_EXPORT stats_alert final : torrent_alert { diff --git a/src/alert.cpp b/src/alert.cpp index 38001f1a1..c96ce3c9f 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -1725,12 +1725,12 @@ namespace libtorrent namespace { - std::array counters_to_array(counters const& cnt) + aux::array counters_to_array(counters const& cnt) { - std::array arr; + aux::array arr; for (int i = 0; i < counters::num_counters; ++i) - arr[std::size_t(i)] = cnt[i]; + arr[i] = cnt[i]; return arr; } diff --git a/src/session_impl.cpp b/src/session_impl.cpp index bfd501de6..f7e27488f 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -589,7 +589,7 @@ namespace aux { #ifndef TORRENT_DISABLE_LOGGING // this alert is a bit special. The stats headers aren't very useful - // unless session_stats is enabled, sp it's posted in the session_Stats + // unless session_stats is enabled, so it's posted in the session_stats // category as well if (m_alerts.should_post() || m_alerts.should_post())