Re: integer*8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nodar wrote:

   I work with long integers. I use in my program:
          INTEGER *8 c/Z'7FFFFFFFFFFFFFFF'/
where 7FFFFFFFFFFFFFFF = 92233720368547755807 = 2^63-1 - maximal
integer number. From compiller I receive:

    INTEGER *8 c/Z'7FFFFFFFFFFFFFFF'/
                   ^
Integer at (^) too large.

This can be solved by using the flag: -ftypeless-boz.


   When I use another construction:
       INTEGER *8 c
       c=92233720368547755807
I receive analogous answer.

Yep, please use the Z'7FFFFFFFFFFFFFFF' form and the -ftypeless-boz flag.


Hope this helps,

--
Toon Moene - mailto:toon@xxxxxxxxxxxxxxxxxxxx - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux