fixed a type error in for loop
Merge pull request #7 from alvinlaw/master

Compilation Error