Commit 12b5f6c3 authored by Ken Martin's avatar Ken Martin
Browse files

fixed bug in the Set methods

parent 2939affe
......@@ -34,14 +34,14 @@ public:
char *GetPtr(const int id) {return this->Array + id/8;};
vlBitArray &SetValue(const int id, const int i)
{
if (i) this->Array[id/8] != (0x80 >> id%8);
if (i) this->Array[id/8] |= (0x80 >> id%8);
else this->Array[id/8] &= (~(0x80 >> id%8));
if ( id > this->MaxId ) this->MaxId = id;
}
vlBitArray &InsertValue(const int id, const int i)
{
if ( id >= this->Size ) this->Resize(id);
if (i) this->Array[id/8] != (0x80 >> id%8);
if (i) this->Array[id/8] |= (0x80 >> id%8);
else this->Array[id/8] &= (~(0x80 >> id%8));
if ( id > this->MaxId ) this->MaxId = id;
return *this;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment