From 4d8a9340b85aad3c6255c465297b2fb22c87d825 Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Thu, 6 Feb 2020 11:45:33 +0000 Subject: [PATCH 1/1] Fix MSVC warning. * warning C4804: '+=': unsafe use of type 'bool' in operation Change-Id: I7e190bc9655377d3c45364ac75e60f9650b3ab47 Signed-off-by: Victor Cebollada --- dali/internal/update/common/animatable-property.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dali/internal/update/common/animatable-property.h b/dali/internal/update/common/animatable-property.h index 348d849..2a82031 100644 --- a/dali/internal/update/common/animatable-property.h +++ b/dali/internal/update/common/animatable-property.h @@ -205,7 +205,7 @@ public: // false + false does not change value, true + false does not either if( delta && !mValue[bufferIndex] ) { - mValue[bufferIndex] += delta; + mValue[bufferIndex] = delta; OnSet(); } @@ -274,7 +274,7 @@ public: */ void BakeRelative(BufferIndex bufferIndex, bool delta) { - mValue[bufferIndex] += delta; + mValue[bufferIndex] = mValue[bufferIndex] || delta; mBaseValue = mValue[bufferIndex]; OnBake(); -- 2.7.4