Fixed some warnings

signed unsigned mismatch
float and int comparison