llvm.org GIT mirror llvm / 6de6a0a
Fix bug, add support for +/- git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12934 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5555 switch (C) {
5656 case '0': case '1': case '2': case '3': case '4':
5757 case '5': case '6': case '7': case '8': case '9':
58 case '.':
58 case '.': case '+': case '-':
5959 case 'e':
6060 case 'E': return true;
6161 default: return false;
6363 }
6464
6565 static char *BackupNumber(char *Pos, char *FirstChar) {
66 while (Pos < FirstChar && isNumberChar(Pos[-1]))
66 while (Pos > FirstChar && isNumberChar(Pos[-1]))
6767 --Pos;
6868 return Pos;
6969 }