Using clang-12 / Linux, implicit float conversion error #352

Open
opened 2026-01-29 20:42:31 +00:00 by claunia · 0 comments
Owner

Originally created by @blais on GitHub (Oct 25, 2020).

In file included from external/org_brotli/c/enc/block_splitter.c:14:
external/org_brotli/c/enc/./bit_cost.h:48:16: error: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Werror,-Wimplicit-int-float-conversion]
if (retval < sum) {
~ ^~~
1 error generated.

Originally created by @blais on GitHub (Oct 25, 2020). In file included from external/org_brotli/c/enc/block_splitter.c:14: external/org_brotli/c/enc/./bit_cost.h:48:16: error: implicit conversion from 'size_t' (aka 'unsigned long') to 'double' may lose precision [-Werror,-Wimplicit-int-float-conversion] if (retval < sum) { ~ ^~~ 1 error generated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#352