fix some Exception constructors incorrectly using uint for line numbers instead of size_t

This commit is contained in:
Cameron Ross 2019-03-17 19:59:35 -03:00
parent dc9aa4ab9c
commit 5d7324a30c
No known key found for this signature in database
GPG key ID: 777897D98DC91C54
3 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ class ConstructorException : YAMLException
/// Params: msg = Error message.
/// start = Start position of the error context.
/// end = End position of the error context.
this(string msg, Mark start, Mark end, string file = __FILE__, int line = __LINE__)
this(string msg, Mark start, Mark end, string file = __FILE__, size_t line = __LINE__)
@safe pure nothrow
{
super(msg ~ "\nstart: " ~ start.toString() ~ "\nend: " ~ end.toString(),

View file

@ -33,7 +33,7 @@ class NodeException : YAMLException
//
// Params: msg = Error message.
// start = Start position of the node.
this(string msg, Mark start, string file = __FILE__, int line = __LINE__)
this(string msg, Mark start, string file = __FILE__, size_t line = __LINE__)
@safe
{
super(msg ~ "\nNode at: " ~ start.toString(), file, line);

View file

@ -34,7 +34,7 @@ package:
///Exception thrown at Reader errors.
class ReaderException : YAMLException
{
this(string msg, string file = __FILE__, int line = __LINE__)
this(string msg, string file = __FILE__, size_t line = __LINE__)
@safe pure nothrow
{
super("Reader error: " ~ msg, file, line);