summaryrefslogtreecommitdiff
path: root/ext/psych/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych/parser.c')
-rw-r--r--ext/psych/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/parser.c b/ext/psych/parser.c
index 0fa02b981f..ca2946e200 100644
--- a/ext/psych/parser.c
+++ b/ext/psych/parser.c
@@ -75,7 +75,7 @@ static VALUE parse(VALUE self, VALUE yaml)
while(!done) {
if(!yaml_parser_parse(&parser, &event)) {
- size_t line = parser.mark.line;
+ size_t line = parser.mark.line + 1;
size_t column = parser.mark.column;
yaml_parser_delete(&parser);