Re: storing an integer in a double precision



In article <4dc3fc3e$0$99954$c30e37c6@xxxxxxxxxxxxxxxxxxxxxx>,
"robin" <robin51@xxxxxxxxxxxxxxxxxx> wrote:

program test
implicit none
integer :: i
do i = huge(i)-5, huge(i)
print *, i
end do
end program test

I can understand why the first code might have problems, the value
of the trip count for the do loop cannot be computed in an integer
register. But I don't see why the above do loop does not terminate.
The trip count should be 6. What quirk of hardware would make it
anything other than 6?

$.02 -Ron Shepard
.