Commit 162ca6d9 authored by Matthias Möller's avatar Matthias Möller

removed some unnecessary double negations

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1273 fdac6126-5c0c-442c-9429-916003d36597
parent b74e1bd7
......@@ -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;
}
......
Markdown is supported
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