diff options
author | Shevek <[email protected]> | 2015-05-13 12:28:39 -0700 |
---|---|---|
committer | Shevek <[email protected]> | 2015-05-13 12:28:39 -0700 |
commit | 1bb60e9a9bc4f2f38958ca42e98134aa6dc13470 (patch) | |
tree | ae5a7d24586b9233e04e03b623fdd22a0888a744 /src/main/java | |
parent | e883399f0bb2c9a54c6d0e3565f0a753baa076b4 (diff) |
Fix #29 - line directives out by one on pop_source. Hard to unit test without a CONSUMER for #line directives.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/anarres/cpp/Preprocessor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/anarres/cpp/Preprocessor.java b/src/main/java/org/anarres/cpp/Preprocessor.java index a790813..59d8ba8 100644 --- a/src/main/java/org/anarres/cpp/Preprocessor.java +++ b/src/main/java/org/anarres/cpp/Preprocessor.java @@ -575,7 +575,7 @@ public class Preprocessor implements Closeable { /* We actually want 'did the nested source * contain a newline token', which isNumbered() * approximates. This is not perfect, but works. */ - return line_token(t.getLine() + 1, t.getName(), " 2"); + return line_token(t.getLine(), t.getName(), " 2"); } return null; |