aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/3rdparty/cplusplus')
-rw-r--r--src/libs/3rdparty/cplusplus/Literals.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libs/3rdparty/cplusplus/Literals.cpp b/src/libs/3rdparty/cplusplus/Literals.cpp
index a70e9025d3..19c92e49bb 100644
--- a/src/libs/3rdparty/cplusplus/Literals.cpp
+++ b/src/libs/3rdparty/cplusplus/Literals.cpp
@@ -106,9 +106,11 @@ NumericLiteral::NumericLiteral(const char *chars, unsigned size)
} // switch
}
- for (const char *dot = it; it != begin - 1; --it) {
- if (*dot == '.')
+ for (const char *dot = it; dot != begin - 1; --dot) {
+ if (*dot == '.') {
f._type = NumericLiteralIsDouble;
+ break;
+ }
}
for (++it; it != end; ++it) {