Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

pick-up integer miss-match

$
0
0

just wonder if there is a way to pick-up integer miss-match (see simple example below) as it might frequnetly appear when porting from Win32 to x64. Any suggestions how I can find such flaws? Useful compiler options, etc..

program test

    integer(4)  i4

    integer(8)  i8

    i8 = 2

    do i = 1,19

        i4= i8   ! here is the miss-match that leads to problems for i>10

        write (*,*) 'i4= ', i4, ';   i8=', i8

        i8 = 10*i8

    enddo

    read(*,*)

end program test


Viewing all articles
Browse latest Browse all 3270

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>