Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/GCodes/GCodeBuffer/ExpressionParser.cpp')
-rw-r--r--src/GCodes/GCodeBuffer/ExpressionParser.cpp4
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: