lang: remove endwhile keyword

This commit is contained in:
Nigel Tao committed 2024-07-08 17:15:48 +10:00
1 parent 6c8a43390b
commit aae5997e12
56 files changed
+578 -590

No files matched your search

+3 -3
View File
@@ -366,8 +366,8 @@ pri func decoder.decode_huffman_fast32!(dst: base.io_writer, src: base.io_reader
up_to: length, distance: (dist_minus_1 + 1))
}
break
} endwhile
} endwhile.loop
}
}.loop
// Ensure n_bits < 8 by rewindng args.src, if we loaded too many of its
// bytes into the bits variable.
@@ -388,7 +388,7 @@ pri func decoder.decode_huffman_fast32!(dst: base.io_writer, src: base.io_reader
} else {
return "#internal error: inconsistent I/O"
}
} endwhile
}
this.bits = bits & (((1 as base.u32) << n_bits) - 1)
this.n_bits = n_bits