eina_safepointer: Fix coverity warning
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Jul 2016 07:22:00 +0000 (16:22 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Jul 2016 07:25:01 +0000 (16:25 +0900)
commit4d9de121d174873ff254046f1eec17171197e5b3
tree493c42e52c0cc4e789ac80207f36f261aa85ec90
parent9cf72fe80a81cabb36f40e6186852b78750cc48d
eina_safepointer: Fix coverity warning

I guess the overflow was badly handled. Fixing it by using
explicit int intermediate value.

Fixes CID 1356616 and 1356619:

Operands don't affect result
Logically dead code
src/lib/eina/eina_safepointer.c