From 162ca6d9b692d89922e22e43586d2966c3d38b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Wed, 3 Jun 2015 07:19:08 +0000 Subject: [PATCH] removed some unnecessary double negations git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1273 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Core/Utils/Property.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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<