Fix MSVS 2013 warning about a condition being always true.

Use "for(;;)" for the infinite loop to avoid the warning at /W4 warning level.