removed some unnecessary double negations

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1273 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2015-06-03 07:19:08 +00:00
parent b74e1bd7d7
commit 162ca6d9b6

View File

@@ -294,7 +294,7 @@ public:
{
bits = 0;
for (idx=0; idx < R; ++idx)
bits |= !!data_[bidx+idx] << idx;
bits |= static_cast<unsigned char>(data_[bidx+idx]) << idx;
_ostr << bits;
++bytes;
}
@@ -335,7 +335,7 @@ public:
{
_istr >> bits;
for (idx=0; idx < R; ++idx)
data_[bidx+idx] = !!(bits & (1<<idx));
data_[bidx+idx] = (bits & (1<<idx)) != 0;
++bytes;
}