Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2021 20:36:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 254207] lang/J: build error: implicit conversion from 'long long' to 'double' changes value
Message-ID:  <bug-254207-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254207

            Bug ID: 254207
           Summary: lang/J: build error: implicit conversion from 'long
                    long' to 'double' changes value
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: serpent7776@gmail.com
                CC: sevenjp@gmail.com
             Flags: maintainer-feedback?(sevenjp@gmail.com)
                CC: sevenjp@gmail.com

/usr/ports/lang/J/work/jsource-j807-release/jsrc/ar.c:254:70: error: implic=
it
conversion from 'long long' to 'double' changes value from 9223372036854775=
807
to 9223372036854775808
      [-Werror,-Wimplicit-int-float-conversion]
  case CPLUS:    if(n&&equ(e,zero))R z; DO(r, d*=3Ds[i];);
t=3Dtymes(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: expand=
ed
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: implic=
it
conversion from 'long long' to 'double' changes value from 9223372036854775=
807
to 9223372036854775808
      [-Werror,-Wimplicit-int-float-conversion]
  case CSTAR:    if(n&&equ(e,one ))R z; DO(r, d*=3Ds[i];);
t=3Dexpn2(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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254207-7788>