jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
337 stars 86 forks source link

real to int #449

Closed jacobwilliams closed 4 years ago

jacobwilliams commented 4 years ago

When strict type checking is false, the real to int conversion is using:

                value = int(me%dbl_value)

It should probably be:

                value = int(me%dbl_value, IK)

for the case where the library has been compiled with a non-default int kind.