From 0433a32857e0ebac82d343effa44cf2331767ae3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 20 Jul 2008 10:35:51 +0000 Subject: [PATCH] fixed msvc warning --- include/libtorrent/alert.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libtorrent/alert.hpp b/include/libtorrent/alert.hpp index afa8e978f..49b1129b4 100644 --- a/include/libtorrent/alert.hpp +++ b/include/libtorrent/alert.hpp @@ -115,7 +115,7 @@ namespace libtorrent { std::auto_ptr get(); template - bool should_post() const { return m_alert_mask & T::static_category; } + bool should_post() const { return (m_alert_mask & T::static_category) != 0; } alert const* wait_for_alert(time_duration max_wait);