diff options
Diffstat (limited to 'tests/manual/plain-cplusplus/Preprocessor.cpp')
-rw-r--r-- | tests/manual/plain-cplusplus/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/plain-cplusplus/Preprocessor.cpp b/tests/manual/plain-cplusplus/Preprocessor.cpp index 5fbc9966f7..376fad153a 100644 --- a/tests/manual/plain-cplusplus/Preprocessor.cpp +++ b/tests/manual/plain-cplusplus/Preprocessor.cpp @@ -279,7 +279,7 @@ void Preprocessor::skipPreprocesorDirective(Token *tk) } StringRef Preprocessor::asStringRef(const Token &tk) const -{ return StringRef(_source.begin() + tk.begin(), tk.length()); } +{ return StringRef(_source.begin() + tk.bytesBegin(), tk.length()); } Preprocessor::Preprocessor(std::ostream &out) : out(out), _lexer(0), inPreprocessorDirective(false) |