Fix prevent issue - Unsigned compared against 0 21/40921/2
authorYoonsang Lee <ysang114.lee@samsung.com>
Wed, 10 Jun 2015 08:36:07 +0000 (17:36 +0900)
committerYoonsang Lee <ysang114.lee@samsung.com>
Thu, 11 Jun 2015 00:36:34 +0000 (09:36 +0900)
commit2a52c6dcf64f96af3bf3c3d27c0248afd9d5119e
tree12b1da0e766ac1f47ded2e2a74c1564cf6d85a62
parent7764df3bdd3942d642c7c47cc126e1757fb1756f
Fix prevent issue - Unsigned compared against 0

- Since t/step can be negative number, min = static_cast<int>(t/step); and
if( min < 0) might cause unexpected behavior.
- Introduce new float tLocation variable instead of direct assigning
t/step to unsigned min variable.

<Prevent message>
CID 436228 (#1 of 1): Unsigned compared against 0 (NO_EFFECT)
unsigned_compare: This less-than-zero comparison of an unsigned value is never true. min < 0U.
 95        if( min < 0)

Change-Id: Id1be5aaf7a03f04f9cf61b1ad947f08bacb78563
dali/internal/event/animation/linear-constrainer-impl.h