Coverity: CID 400010: Improper use of negative value