From 263e6a61f61185c45d9c6d8489b57105e7b9b223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20M=C3=B6ller?= Date: Thu, 28 Jun 2012 11:05:27 +0200 Subject: [PATCH] Verification wasn't verifying much. Thanks to sof for noticing. --- samples/performance.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/performance.html b/samples/performance.html index f54bba6..927d795 100644 --- a/samples/performance.html +++ b/samples/performance.html @@ -85,11 +85,11 @@ var e = 0; var f = 0; for (; e < unzipped[n].length; ++e, ++f) { - var expected = unzipped[n].charCodeAt& 0xff; - var found = result.data.charCodeAt & 0xff; + var expected = unzipped[n].charCodeAt(e) & 0xff; + var found = result.data.charCodeAt(f) & 0xff; if (expected != found) { - if (expected == 10 && found == 13 && (result.data.charCodeAt(f + 1) & 0xff) == 10) { - ++f; + if (expected == 13 && found == 10) { + ++e; continue; } appendLog("Found " + found + ", expected " + expected + "
");