Removed unsigned negative check; Fixed return value warning; Fixed parentheses warning;