diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-02 08:54:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-02 08:54:00 +0200 |
commit | bbd05eb0c32a9614f012a1d9b75cef736a1d4150 (patch) | |
tree | 590d19b96061666eeadf6ae36b907e05f6b79609 /build/lexer.cxx | |
parent | 4372f041bb7401c3adc2d5710566b13f64722102 (diff) |
Clean up clang warnings
Diffstat (limited to 'build/lexer.cxx')
-rw-r--r-- | build/lexer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/lexer.cxx b/build/lexer.cxx index c2f98f2..2870620 100644 --- a/build/lexer.cxx +++ b/build/lexer.cxx @@ -62,10 +62,10 @@ namespace build { xchar c (get ()); - if (!is_eos (c)) - return c; + if (is_eos (c)) + fail (c) << "unterminated escape sequence"; - fail (c) << "unterminated escape sequence"; + return c; } void lexer:: |