Avoid taking a pointer of the loop variable.