Extra warnings for the debug build: -Wfloat-equal -Wconversion. The code was fixed accordingly. No broken tests.

This commit is contained in:
Pavel Kirienko
2014-08-28 01:33:27 +04:00
parent 61c4f89ea3
commit 8240c7962b
26 changed files with 112 additions and 83 deletions
+2 -2
View File
@@ -94,11 +94,11 @@ public:
validatePos(pos);
if (val)
{
data_[getByteNum(pos)] |= (1 << getBitNum(pos));
data_[getByteNum(pos)] = char(data_[getByteNum(pos)] | (1 << getBitNum(pos)));
}
else
{
data_[getByteNum(pos)] &= ~(1 << getBitNum(pos));
data_[getByteNum(pos)] = char(data_[getByteNum(pos)] & ~(1 << getBitNum(pos)));
}
return *this;
}