fix some Exception constructors incorrectly using uint for line numbers instead of size_t
This commit is contained in:
parent
dc9aa4ab9c
commit
5d7324a30c
|
@ -38,7 +38,7 @@ class ConstructorException : YAMLException
|
||||||
/// Params: msg = Error message.
|
/// Params: msg = Error message.
|
||||||
/// start = Start position of the error context.
|
/// start = Start position of the error context.
|
||||||
/// end = End 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
|
@safe pure nothrow
|
||||||
{
|
{
|
||||||
super(msg ~ "\nstart: " ~ start.toString() ~ "\nend: " ~ end.toString(),
|
super(msg ~ "\nstart: " ~ start.toString() ~ "\nend: " ~ end.toString(),
|
||||||
|
|
|
@ -33,7 +33,7 @@ class NodeException : YAMLException
|
||||||
//
|
//
|
||||||
// Params: msg = Error message.
|
// Params: msg = Error message.
|
||||||
// start = Start position of the node.
|
// 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
|
@safe
|
||||||
{
|
{
|
||||||
super(msg ~ "\nNode at: " ~ start.toString(), file, line);
|
super(msg ~ "\nNode at: " ~ start.toString(), file, line);
|
||||||
|
|
|
@ -34,7 +34,7 @@ package:
|
||||||
///Exception thrown at Reader errors.
|
///Exception thrown at Reader errors.
|
||||||
class ReaderException : YAMLException
|
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
|
@safe pure nothrow
|
||||||
{
|
{
|
||||||
super("Reader error: " ~ msg, file, line);
|
super("Reader error: " ~ msg, file, line);
|
||||||
|
|
Loading…
Reference in a new issue