From e5561285c396778f178f76a472cd282a72bf3359 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Tue, 29 Jul 2014 23:25:22 +0200 Subject: [PATCH] Removed UTF-32 buffer offset. --- source/dyaml/reader.d | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index cbbcf5e..9fdd8d2 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -57,7 +57,6 @@ final class Reader char[] buffer8_ = null; // Current position within buffer. Only data after this position can be read. - uint bufferOffset_ = 0; size_t bufferOffset8_ = 0; // Index of the current character in the buffer. @@ -332,7 +331,6 @@ private: assert(bufferOffset8_ < buffer8_.length, "Attempted to decode past the end of a string"); const b = buffer8_[bufferOffset8_]; - ++bufferOffset_; ++charIndex_; ++decodeCount_; if(b < 0x80)