From 3c3149cd5f8a2aea6e7f41d65fbb2024fa266edf Mon Sep 17 00:00:00 2001 From: glenux Date: Sat, 29 Oct 2005 20:19:29 +0000 Subject: [PATCH] --- src/lib/eyd_bitgroup.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/eyd_bitgroup.cpp b/src/lib/eyd_bitgroup.cpp index b7e202a..90ee791 100644 --- a/src/lib/eyd_bitgroup.cpp +++ b/src/lib/eyd_bitgroup.cpp @@ -139,6 +139,12 @@ namespace EydLib { return ((1 << this->_group_size)-1); } unsigned long int BitGroup::getValue(){ + unsigned long int result; + result = 0; + for (int i=0; i_group_size; i++){ + result = (result << 1) | this->getBitAt(i); + } + return result; } std::string BitGroup::toString(){