From 92d61c1ba2ddbf8722b1a55e2f392c58b3dd078b Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 24 Oct 2007 17:05:14 -0600 Subject: [PATCH] superficial tweak --- src/machine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/machine.cpp b/src/machine.cpp index 3c938c4d4b..63f181e03f 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -507,7 +507,7 @@ parseUtf8(Thread* t, Stream& s, unsigned length) { object value = makeByteArray(t, length + 1, false); unsigned vi = 0; - for (unsigned si = 0; si < length; ++ si, ++ vi) { + for (unsigned si = 0; si < length; ++si) { unsigned a = s.read1(); if (a & 0x80) { ++ si; @@ -516,12 +516,12 @@ parseUtf8(Thread* t, Stream& s, unsigned length) unsigned b = s.read1(); if (a == 0xC0 and b == 0x80) { - byteArrayBody(t, value, vi) = 0; + byteArrayBody(t, value, vi++) = 0; } else { abort(t); // todo } } else { - byteArrayBody(t, value, vi) = a; + byteArrayBody(t, value, vi++) = a; } }