Skip to content

Commit

Permalink
Fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars T Hansen committed Dec 26, 2017
1 parent 3546d98 commit 1e1b226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lock.js
Expand Up @@ -27,7 +27,7 @@

let _checkParameters = function (sab, loc, truth, who) {
if (!(sab instanceof SharedArrayBuffer &&
loc|0 == loc &&
(loc|0) == loc &&
loc >= 0 &&
loc % truth.ALIGN == 0 &&
loc + truth.NUMBYTES <= sab.byteLength))
Expand Down

0 comments on commit 1e1b226

Please sign in to comment.