diff options
-rw-r--r-- | build2/lexer.cxx | 2 | ||||
-rw-r--r-- | build2/parser.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/build2/lexer.cxx b/build2/lexer.cxx index 02271e9..8f09baf 100644 --- a/build2/lexer.cxx +++ b/build2/lexer.cxx @@ -444,7 +444,7 @@ namespace build2 if (m == lexer_mode::variable) state_.pop (); - return token (lexeme, sep, quoted, ln, cn, token_printer); + return token (move (lexeme), sep, quoted, ln, cn, token_printer); } diff --git a/build2/parser.cxx b/build2/parser.cxx index c7ede35..a2d9d1b 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -1750,11 +1750,11 @@ namespace build2 // untyped one to the other's type instead of complaining. This // seems like a reasonable thing to do and will allow us to write: // - // if (build.version > 30000) + // if ($build.version > 30000) // // Rather than having to write: // - // if (build.version > [uint64] 30000) + // if ($build.version > [uint64] 30000) // if (lhs.type != rhs.type) { |