-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outside integer(kind=8) range? #159
Comments
This part of the Fortran 2003 standard may be relevant:
Does it help matters to change line 91 so that it reads: if(iand(i,int(Z'FFFFFFFF00000000',kind=8)/=0) then The GNU 10 compilers generate the following error when compiling
|
There's a forum post with some discussion of this issue, too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In WPS, I am looking at the file ungrib/src/ngl/g2/intmath.f.
Here is the entire function (with line numbers to make identification easy):
I am getting a compile-time error that says that the value on line 91 is larger than an integer(kind=8).
From this page, https://gcc.gnu.org/onlinedocs/gcc-4.7.4/gfortran/BOZ-literal-constants.html, there is a line:
From this page, the largest integer(kind=8) is 9.2(10)^18: http://www.cs.uwm.edu/classes/cs151/Bacon/Lecture/HTML/ch06s09.html
The value of FFFF FFFF FFFF FFFF is twice as large, 1.8(10)^19.
The text was updated successfully, but these errors were encountered: