Fix Coverity 1046900 (Improper use of negative value)