I have tried the following
INTEGER*1 i1Temp i1Temp=-116 i1Temp=ISHFT(i1Temp,-1)
-116 should be 140 as an unsigned integer so I would expect 70 as the result (basically I am trying to do an unsigned divide by 2)
Compiled with Checkmate this comes up with the error arithmetic overflow Compiled with Debug this doesn't throw up an error but it doesn't perform the operation.
Not sure why there is an error as a bit operation shouldn't result in arthmetic overflow?
Tried using RS instead of ISHFT and get the same result and error.
FTN95 version 5.10.0
Thanks
Mark Jordan