Change `If` to `if` and change compare from a pointer to a regular
int.