Fixed variables for comparison from byte to int

Wrong variable types used. Identified by enigma32

http://forum.reefangel.com/viewtopic.php?p=24892#p24892