Skip to content

Commit

Permalink
runtime: fix useWhile
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Sep 20, 2024
1 parent bb4a4eb commit 384075e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
"useExponentiationOperator": "off",
"useNodejsImportProtocol": "off",
"useSingleVarDeclarator": "off",
"useTemplate": "off",
"useWhile": "off"
"useTemplate": "off"
},
"suspicious": {
"noAssignInExpressions": "off",
Expand Down
6 changes: 3 additions & 3 deletions runtime/zstd.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ var zstd_decompress = (function () {
btr = hu.b,
pos = (len << 3) - 8 + msb(lb) - btr,
i = -1;
for (; pos > eb && i < ss; ) {
while (pos > eb && i < ss) {
var cbt = pos >> 3;
var val =
(dat[cbt] | (dat[cbt + 1] << 8) | (dat[cbt + 2] << 16)) >> (pos & 7);
Expand Down Expand Up @@ -667,7 +667,7 @@ var zstd_decompress = (function () {
bufs = [],
nb = +!buf,
ol = 0;
for (; dat.length; ) {
while (dat.length) {
var st = rzfh(dat, nb || buf);
if (typeof st == "object") {
if (nb) {
Expand All @@ -680,7 +680,7 @@ var zstd_decompress = (function () {
bufs.push(buf);
st.e = 0;
}
for (; !st.l; ) {
while (!st.l) {
var blk = rzb(dat, st, buf);
if (!blk) err(5);
if (buf) st.e = st.y;
Expand Down

0 comments on commit 384075e

Please sign in to comment.