Skip to content

Commit

Permalink
Verification wasn't verifying much. Thanks to sof for noticing.
Browse files Browse the repository at this point in the history
  • Loading branch information
emoller committed Jun 28, 2012
1 parent 67e69d2 commit 263e6a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions samples/performance.html
Expand Up @@ -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 + "<br>");
Expand Down

0 comments on commit 263e6a6

Please sign in to comment.