coverityMake sure the signed operation works as expected, by casting to intbefore the operation takes place.Change-Id: I30beeac45ff2d8c08905986af9fabfda071ddc5b