Yes, going up to huge() in a loop can cause problems, depending on how the compiler manages the loop bounds. See this thread:
huge()