diff options
Diffstat (limited to 'src/GCodes/GCodeBuffer/ExpressionParser.cpp')
-rw-r--r-- | src/GCodes/GCodeBuffer/ExpressionParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GCodes/GCodeBuffer/ExpressionParser.cpp b/src/GCodes/GCodeBuffer/ExpressionParser.cpp index 09315121..ce5e2fc5 100644 --- a/src/GCodes/GCodeBuffer/ExpressionParser.cpp +++ b/src/GCodes/GCodeBuffer/ExpressionParser.cpp @@ -555,7 +555,7 @@ float ExpressionParser::ParseFloat() THROWS(GCodeException) int32_t ExpressionParser::ParseInteger() THROWS(GCodeException) { - ExpressionValue val = Parse(); + const ExpressionValue val = Parse(); switch (val.GetType()) { case TypeCode::Int32: @@ -575,7 +575,7 @@ int32_t ExpressionParser::ParseInteger() THROWS(GCodeException) uint32_t ExpressionParser::ParseUnsigned() THROWS(GCodeException) { - ExpressionValue val = Parse(); + const ExpressionValue val = Parse(); switch (val.GetType()) { case TypeCode::Uint32: |