git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1147
270642c3-0616-0410-b53a-bc976706d245
{
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);