Skip to content

Commit 621d5a3

Browse files
Update clang/lib/Lex/LiteralSupport.cpp
Co-authored-by: OverMighty <[email protected]>
1 parent ae0cf84 commit 621d5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Lex/LiteralSupport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ NumericLiteralParser::NumericLiteralParser(StringRef TokSpelling,
993993

994994
if ((Target.hasBFloat16Type() || LangOpts.CUDA ||
995995
(LangOpts.OpenMPIsTargetDevice && Target.getTriple().isNVPTX())) &&
996-
s + 2 < ThisTokEnd &&
996+
s + 3 < ThisTokEnd &&
997997
((s[0] == 'b' && s[1] == 'f') || (s[0] == 'B' && s[1] == 'F')) &&
998998
s[2] == '1' && s[3] == '6') {
999999
s += 3; // success, eat up 3 characters.

0 commit comments

Comments
 (0)