diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index 78f4ac5..6f004b6 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -325,8 +325,7 @@ private: dchar decodeNext() @safe pure nothrow @nogc { assert(lastDecodedBufferOffset_ < buffer_.length, - "Attempted to decode past the end of a string"); - ++decodeCount_; + "Attempted to decode past the end of YAML buffer"); const char b = buffer_[lastDecodedBufferOffset_]; ++lastDecodedCharOffset_; // ASCII