Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions romwrapper/crc.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const crc_table = [
function gen_table() {
let crc = 0;
let poly = 0;
let crc;

poly = 0xEDB88320;
for (let i = 0; i < 256; i++) {
crc = i;
for (let j = 8; j > 0; j--) {
Expand Down Expand Up @@ -192,4 +192,4 @@ function recalcCRC(buffer) {
}

return crc;
}
}