nnodes is an integer variable. It's comparing i to the integer value of nnodes.