[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 81b29cf 2/2: Write inequality comparisons in
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 81b29cf 2/2: Write inequality comparisons in number-line order |
Date: |
Tue, 21 Mar 2017 03:23:07 -0400 (EDT) |
branch: master
commit 81b29cf63dad93ac776b5b57ab6a579d9bbe4a71
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Write inequality comparisons in number-line order
---
bourn_cast.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bourn_cast.hpp b/bourn_cast.hpp
index f8b6d05..3a0cecf 100644
--- a/bourn_cast.hpp
+++ b/bourn_cast.hpp
@@ -83,9 +83,9 @@ inline To bourn_cast(From from)
#if defined __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wsign-compare"
-# if __GNUC__ >= 5
+# if 5 <= __GNUC__
# pragma GCC diagnostic ignored "-Wbool-compare"
-# endif // __GNUC__ >= 5
+# endif // 5 <= __GNUC__
#endif // defined __GNUC__
if(! to_traits::is_signed && from < 0)
throw std::runtime_error("Cast would convert negative to unsigned.");