From 4d737be9310af6b33a335592391ec590bf857047 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Wed, 26 Sep 2012 11:51:47 +0200 Subject: [PATCH] Fixed a bug that broke mappings longer than 65536 lines. --- dyaml/scanner.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dyaml/scanner.d b/dyaml/scanner.d index 204d4d5..acaedb3 100644 --- a/dyaml/scanner.d +++ b/dyaml/scanner.d @@ -94,7 +94,7 @@ final class Scanner ///Index of the key token from start (first token scanned being 0). uint tokenIndex; ///Line the key starts at. - ushort line; + uint line; ///Column the key starts at. ushort column; ///Is this required to be a simple key? @@ -345,7 +345,7 @@ final class Scanner const column = reader_.column; const key = SimpleKey(cast(uint)reader_.charIndex, tokenCount, - line < ushort.max ? cast(ushort)line : ushort.max, + line, column < ushort.max ? cast(ushort)column : ushort.max, required);