Skip to content
Prev 1386 / 12125 Next

[R-pkg-devel] Solaris SPARC, Fortran, and logical errors?

I don't know about the current Sparc Fortran compilers, but over the
years have learned not to try to pass logicals and character strings
between C and Fortran.  I have seen Fortran compilers that treated
integer -1 (all bits 1) as .true. and anything else as .false. and I
have see ones that looked only at bit 7, counting from the right, to
determine the value.

I recommend changing your Fortran code to accept an integer instead of
a logical for boolean inputs and outputs.

Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Wed, Mar 15, 2017 at 7:40 AM, Avraham Adler <avraham.adler at gmail.com> wrote: