remove questionable assert in s6zer

This commit is contained in:
Green Sky 2022-12-07 18:40:12 +01:00
parent 4ab1d99529
commit a45da5c2b0
No known key found for this signature in database

View File

@ -194,10 +194,6 @@ struct StreamWriter {
} }
[[nodiscard]] size_t bytesWritten(void) noexcept { [[nodiscard]] size_t bytesWritten(void) noexcept {
// TODO: is this assert valid?
assert(_scratch_bits == 0);
//return _bits_written/8 + ((_bits_written % 8) ? 1 : 0);
return (_bits_written+7) / 8; return (_bits_written+7) / 8;
} }