Make channum an int once.