diff options
Diffstat (limited to 'lib/Lex/LiteralSupport.cpp')
-rw-r--r-- | lib/Lex/LiteralSupport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp index f9fd1aac79..8c2f2aff47 100644 --- a/lib/Lex/LiteralSupport.cpp +++ b/lib/Lex/LiteralSupport.cpp @@ -224,7 +224,7 @@ NumericLiteralParser(const char *begin, const char *end, saw_period = true; s = SkipDigits(s); } - if (*s == 'e' || *s == 'E') { // exponent + if (s != ThisTokEnd && (*s == 'e' || *s == 'E')) { // exponent const char *Exponent = s; s++; saw_exponent = true; |