aboutsummaryrefslogtreecommitdiff
path: root/c/enc/utf8_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/enc/utf8_util.c')
-rw-r--r--c/enc/utf8_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/enc/utf8_util.c b/c/enc/utf8_util.c
index 04a7805..e802b6a 100644
--- a/c/enc/utf8_util.c
+++ b/c/enc/utf8_util.c
@@ -77,7 +77,7 @@ BROTLI_BOOL BrotliIsMostlyUTF8(
i += bytes_read;
if (symbol < 0x110000) size_utf8 += bytes_read;
}
- return TO_BROTLI_BOOL(size_utf8 > min_fraction * (double)length);
+ return TO_BROTLI_BOOL((double)size_utf8 > min_fraction * (double)length);
}
#if defined(__cplusplus) || defined(c_plusplus)