Bug 254207 - lang/J: build error: implicit conversion from 'long long' to 'double' changes value
Summary: lang/J: build error: implicit conversion from 'long long' to 'double' changes...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-10 20:36 UTC by serpent7776
Modified: 2021-03-10 20:36 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sevenjp)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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