From 3294d0712600fe629ccc661541e80214cb1b6533 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 24 Feb 2002 02:38:45 +0000 Subject: [PATCH] Added an explicit cast to suppress warnings [SVN r12919] --- include/boost/type_traits/type_traits_test.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/type_traits/type_traits_test.hpp b/include/boost/type_traits/type_traits_test.hpp index c5708c7..2af4eaf 100644 --- a/include/boost/type_traits/type_traits_test.hpp +++ b/include/boost/type_traits/type_traits_test.hpp @@ -42,7 +42,9 @@ int check_result(int argc, char** argv) std::cout << "Press any key to continue..."; std::cin.get(); } - return (failures == expected_failures) ? 0 : (failures != 0) ? failures : -1; + return (failures == expected_failures) + ? 0 + : (failures != 0) ? static_cast(failures) : -1; }