diff --git a/src/OpenMesh/Core/Utils/Property.hh b/src/OpenMesh/Core/Utils/Property.hh index b7fed815..68a6bbec 100644 --- a/src/OpenMesh/Core/Utils/Property.hh +++ b/src/OpenMesh/Core/Utils/Property.hh @@ -294,7 +294,7 @@ public: { bits = 0; for (idx=0; idx < R; ++idx) - bits |= !!data_[bidx+idx] << idx; + bits |= static_cast(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<