Bug 254207

Summary: lang/J: build error: implicit conversion from 'long long' to 'double' changes value
Product: Ports & Packages Reporter: serpent7776
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Only Me CC: sevenjp
Priority: --- Flags: bugzilla: maintainer-feedback? (sevenjp)
Version: Latest   
Hardware: Any   
OS: Any   

Description serpent7776 2021-03-10 20:36:20 UTC
/usr/ports/lang/J/work/jsource-j807-release/jsrc/ar.c:254:70: error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775807 to 9223372036854775808
      [-Werror,-Wimplicit-int-float-conversion]
  case CPLUS:    if(n&&equ(e,zero))R z; DO(r, d*=s[i];); t=tymes(e,d>IMAX?scf(d-n):sc((I)d-n)); R n?plus (z,t):t;
                                                                    ~^~~~
/usr/ports/lang/J/work/jsource-j807-release/jsrc/j.h:60:25: note: expanded from macro 'IMAX'
#define IMAX            9223372036854775807LL
                        ^~~~~~~~~~~~~~~~~~~~~
/usr/ports/lang/J/work/jsource-j807-release/jsrc/ja.h:1163:53: note: expanded from macro 'tymes'
#define tymes(x,y)                  jttymes(jt,(x),(y))
                                                    ^
/usr/ports/lang/J/work/jsource-j807-release/jsrc/ar.c:255:70: error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775807 to 9223372036854775808
      [-Werror,-Wimplicit-int-float-conversion]
  case CSTAR:    if(n&&equ(e,one ))R z; DO(r, d*=s[i];); t=expn2(e,d>IMAX?scf(d-n):sc((I)d-n)); R n?tymes(z,t):t;
                                                                    ~^~~~
/usr/ports/lang/J/work/jsource-j807-release/jsrc/j.h:60:25: note: expanded from macro 'IMAX'
#define IMAX            9223372036854775807LL
                        ^~~~~~~~~~~~~~~~~~~~~
/usr/ports/lang/J/work/jsource-j807-release/jsrc/ja.h:327:53: note: expanded from macro 'expn2'
#define expn2(x,y)                  jtexpn2(jt,(x),(y))
                                                    ^
2 errors generated.
gmake[3]: *** [/usr/ports/lang/J/work/jsource-j807-release/make/makefile:4: ar.o] Error 1
gmake[3]: Leaving directory '/usr/ports/lang/J/work/jbld/jout/libj.so/j64'
output in /usr/ports/lang/J/work/jbld/j64/bin/build_libj.so.txt