aboutsummaryrefslogtreecommitdiff
path: root/parser
diff options
context:
space:
mode:
Diffstat (limited to 'parser')
-rw-r--r--parser/CC/Parser.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/CC/Parser.hs b/parser/CC/Parser.hs
index d9e5b40..856a7b9 100644
--- a/parser/CC/Parser.hs
+++ b/parser/CC/Parser.hs
@@ -131,4 +131,4 @@ whitespace = void (many (char ' '))
getPosition :: Parser SourcePos
getPosition = do
pos <- Text.Parsec.getPosition
- return (SourcePos (sourceLine pos) (sourceColumn pos))
+ return (SourcePos (sourceLine pos - 1) (sourceColumn pos - 1))