If you're going to check for negative, use an signed integer! Coverity ID 122.