fix scanner.cpp
Merge pull request #2 from jianxinzhou/master

fix scanner.cpp