You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change the C function to use a boolean ( if requiring the c99 standard is acceptable ).
Looks like the C function is currently upcasting the boolean coming from C++ to an integer.
change the Fortran interface to return a 4 byte boolean ( logical*4 ).
thanks @aaroncblack. To keep the current interface -- we can wrap the c funcs with a different name (we use c_ prefix for other cases) and do the conversion in a method that implements the current interface. I am sure exists in a few places, I'll do an inventory.
Aaron Skinner and I ran into a stack memory overflow on the Fortran interface:
The C function implementation is returning a 4 byte integer, but the Fortran interface has the return type declared as a
which is 1 byte.
So, there is a 3 byte overrun.
The text was updated successfully, but these errors were encountered: