projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c78c0e4
)
Fix bug, add support for +/-
author
Chris Lattner
<sabre@nondot.org>
Tue, 13 Apr 2004 21:48:43 +0000
(21:48 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 13 Apr 2004 21:48:43 +0000
(21:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12934
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/fpcmp/fpcmp.cpp
patch
|
blob
|
history
diff --git
a/utils/fpcmp/fpcmp.cpp
b/utils/fpcmp/fpcmp.cpp
index ae5667a46d8391a223269758b9aa779ae0cde818..3df0fa5480ca5030e461508534b23bb9ee5a9129 100644
(file)
--- a/
utils/fpcmp/fpcmp.cpp
+++ b/
utils/fpcmp/fpcmp.cpp
@@
-56,7
+56,7
@@
static bool isNumberChar(char C) {
switch (C) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
- case '.':
+ case '.':
case '+': case '-':
case 'e':
case 'E': return true;
default: return false;
@@
-64,7
+64,7
@@
static bool isNumberChar(char C) {
}
static char *BackupNumber(char *Pos, char *FirstChar) {
- while (Pos
<
FirstChar && isNumberChar(Pos[-1]))
+ while (Pos
>
FirstChar && isNumberChar(Pos[-1]))
--Pos;
return Pos;
}