Do not assert when reading an exponent out of range.
llvm-svn: 111534
This commit is contained in:
parent
8c58bd30dc
commit
370c77c064
|
@ -153,6 +153,7 @@ readExponent(StringRef::iterator begin, StringRef::iterator end)
|
|||
value += absExponent * 10;
|
||||
if (absExponent >= overlargeExponent) {
|
||||
absExponent = overlargeExponent;
|
||||
p = end; /* outwit assert below */
|
||||
break;
|
||||
}
|
||||
absExponent = value;
|
||||
|
|
Loading…
Reference in New Issue