Skip to content

Commit

Permalink
Update c/enc/encode.c
Browse files Browse the repository at this point in the history
Co-authored-by: Eugene Kliuchnikov <[email protected]>
  • Loading branch information
heshpdx and eustas committed Nov 19, 2024
1 parent 782aadd commit 8c6d25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/enc/encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static BROTLI_BOOL ShouldCompress(
static const double kMinEntropy = 7.92;
const double bit_cost_threshold =
(double)bytes * kMinEntropy * invKSampleRate;
size_t t = (bytes + kSampleRate - 1) * invKSampleRate;
size_t t = (double)(bytes + kSampleRate - 1) * invKSampleRate;
uint32_t pos = (uint32_t)last_flush_pos;
size_t i;
for (i = 0; i < t; i++) {
Expand Down

0 comments on commit 8c6d25f

Please sign in to comment.