From 99a87e485a485667f475c124904906bb123ad079 Mon Sep 17 00:00:00 2001
From: g0dil <g0dil@wiback.org>
Date: Fri, 6 Mar 2009 16:12:23 +0000
Subject: [PATCH] Utils/Console: Fix FlagCollection on 64bit hosts

---
 Utils/Console/Traits.ct | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Utils/Console/Traits.ct b/Utils/Console/Traits.ct
index f3e0a72ad..0f8da26ef 100644
--- a/Utils/Console/Traits.ct
+++ b/Utils/Console/Traits.ct
@@ -87,8 +87,8 @@ format(type const & value, std::ostream & os)
 {
     unsigned n (0);
     std::stringstream ss;
-    for (unsigned bit (0); bit<sizeof(value.value)*CHAR_BIT; ++bit) {
-        unsigned long flag (1<<bit);
+    unsigned long flag (1);
+    for (unsigned bit (0); bit<sizeof(value.value)*CHAR_BIT; ++bit, flag<<=1) {
         if (value.value & flag) {
             if (n++) ss << " ";
             senf::console::format(static_cast<Enum>(flag), ss);
-- 
GitLab