Deutsch English Français Italiano |
<lm8gjvFo1sfU1@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Clive Page <usenet@page2.eu> Newsgroups: comp.lang.fortran Subject: Re: Is there a way in Fortran to designate an integer value as integer*8 ? Date: Thu, 3 Oct 2024 22:28:31 +0100 Lines: 10 Message-ID: <lm8gjvFo1sfU1@mid.individual.net> References: <vdict2$339ak$1@dont-email.me> <vdir24$35104$1@dont-email.me> <vdk718$3bulb$1@dont-email.me> <vdl6fi$3jra3$2@dont-email.me> <vdlfpl$3l0f5$1@dont-email.me> <vdmbml$3p2dv$1@dont-email.me> <vdmrgc$3rih7$2@dont-email.me> <vdmt3e$3rq14$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net QhpQDLBkURuzvO26b7HnEwylG/NJB82035XHekHY4cVak9KWfy Cancel-Lock: sha1:beAaANzYdtDPezvJVOZqEDlW2qE= sha256:HQvjwwjOGh6VY38LC2n0JQwMREH7KMlJVG9jiVLb3Vo= User-Agent: Mozilla Thunderbird Content-Language: en-GB In-Reply-To: <vdmt3e$3rq14$1@dont-email.me> Bytes: 1511 On 03/10/2024 20:59, Steven G. Kargl wrote: > My personal recommendation would be to do a proper porting from > integer (aka integer*4) to integer(kind=8). And, yes, 8 in the > 'kind=8' is not portable. > Yes because different compilers use different integer kind numbers for different purposes: at least one uses kinds 1, 2, 3, 4 for the four most common numbers of bytes where other compilers use 1, 2, 4, 8. But if you use integer(kind=int64) this is portable. -- Clive Page