rewrite getValue for integer literal.
Merge pull request #105 from advancedxy/getValue-fix

rewrite getValue for integer literal.