Bytereader working. May not need Bitreader anymore, but it's already in use by D2Item, so we'll leave it.

This commit is contained in:
Hash Borgir
2022-06-22 01:34:39 -06:00
parent 95bcefe2cf
commit 69d4728d8c
5 changed files with 139 additions and 76 deletions

View File

@@ -85,7 +85,7 @@ function setBit(int $n, int $p, bool $b){
}
function getBit(int $b, int $p){
return intval(($b & (1 << $p)) != 0);
return intval(($b & (1 << $p)) !== 0);
}
function checksum($fileData) {