Bug 246798

Summary: textproc/libcss: fails to build with implicit conversion error from 'int' to 'float'
Product: Ports & Packages Reporter: Ivan Rozhuk <rozhuk.im>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: danfe, fernape, rozhuk.im
Priority: --- Keywords: needs-patch
Version: Latest   
Hardware: Any   
OS: Any   

Description Ivan Rozhuk 2020-05-28 05:30:36 UTC
FreeBSD 12.1, amd64, clang10 from base.

...
 COMPILE: src/parse/properties/border_style.c
In file included from src/charset/detect.c:13:
In file included from src/charset/detect.h:14:
In file included from include/libcss/functypes.h:20:
In file included from include/libcss/types.h:22:
include/libcss/fpmath.h:104:11: error: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Werror,-Wimplicit-int-float-conversion]
        if (xx > INT_MAX)
               ~ ^~~~~~~
/usr/include/sys/limits.h:60:18: note: expanded from macro 'INT_MAX'
#define INT_MAX         __INT_MAX       /* max value for an int */
                        ^~~~~~~~~
/usr/include/x86/_limits.h:59:19: note: expanded from macro '__INT_MAX'
#define __INT_MAX       0x7fffffff      /* max value for an int */
                        ^~~~~~~~~~
....
Comment 1 Alexey Dokuchaev freebsd_committer freebsd_triage 2020-10-26 08:03:55 UTC
I believe this had been addressed with ports r538548 back in June.