X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FIntParser.hh;h=fe3de037975e88c7504e225628b54b2732377431;hb=46ce25973f087d30ca10eebdad6e3bfa7586ecc9;hp=fb2a0fc789737a21d1fd2be5ca9c11bb85d8c8ca;hpb=a1001797645cc68c869ef296f5e9ba13aa8e80c4;p=senf.git diff --git a/Packets/IntParser.hh b/Packets/IntParser.hh index fb2a0fc..fe3de03 100644 --- a/Packets/IntParser.hh +++ b/Packets/IntParser.hh @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -426,8 +426,8 @@ namespace senf { value_type value() const { return i()[Bit/8] & (1<<(7-(Bit%8))); } void value(value_type v) { - if (v) i()[0] |= 1<<(7-(Bit%8)); - else i()[0] &= ~(1<<(7-(Bit%8))); + if (v) i()[Bit/8] |= 1<<(7-(Bit%8)); + else i()[Bit/8] &= ~(1<<(7-(Bit%8))); } FlagParser const & operator= (value_type other) { value(other); return *this; } };