Skip to content

Commit

Permalink
Homonyms, how do they work?
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Jul 5, 2019
1 parent 8216ed3 commit 02e4db6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions experiments/maki-interpreter/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ class MakiFile {
}

readUInt32LE() {
const int = this.peakUInt32LE();
const int = this.peekUInt32LE();
this._i += 4;
return int;
}

peakUInt32LE() {
peekUInt32LE() {
const int = this._buffer.readUInt32LE(this._i);
const arrInt = this.__readUInt32LE__arr();
if (int !== arrInt) {
Expand Down Expand Up @@ -332,7 +332,7 @@ function parseComand({ makiFile, length, pos, localFunctions }) {
if (
// Is there another UInt32 to read?
length > pos + 5 + 4 &&
makiFile.peakUInt32LE() >= 0xffff0000
makiFile.peekUInt32LE() >= 0xffff0000
) {
makiFile.readUInt32LE();
}
Expand Down

0 comments on commit 02e4db6

Please sign in to comment.