bireader 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/reader.js +2 -2
package/package.json
CHANGED
package/src/reader.js
CHANGED
|
@@ -2647,9 +2647,9 @@ class bireader {
|
|
|
2647
2647
|
this.#check_size(4)
|
|
2648
2648
|
var read;
|
|
2649
2649
|
if((endian != undefined ? endian : this.endian) == "little"){
|
|
2650
|
-
read = ((
|
|
2650
|
+
read = (((this.data[this.offset + 3] & 0xFF)<< 24) | ((this.data[this.offset + 2] & 0xFF) << 16) | ((this.data[this.offset + 1] & 0xFF) << 8) | (this.data[this.offset] & 0xFF))
|
|
2651
2651
|
} else {
|
|
2652
|
-
read = (
|
|
2652
|
+
read = ((this.data[this.offset] & 0xFF) << 24) | ((this.data[this.offset + 1] & 0xFF) << 16) | ((this.data[this.offset + 2] & 0xFF) << 8) | (this.data[this.offset + 3] & 0xFF)
|
|
2653
2653
|
}
|
|
2654
2654
|
this.offset += 4
|
|
2655
2655
|
if(unsigned == undefined || unsigned == false){
|