fixed comparison operator warnings