steelewool / iraf-v216

IRAF v2.16 / PCIX release
Other
0 stars 0 forks source link

Reset the MSB in the result of ADDR_TO_LOC #32

Closed zcsteele closed 7 years ago

zcsteele commented 7 years ago

This is needed since LOC is later checked to be not negative, but the result of right-shifting the original address may result in a negative value.

Since we left-shift to get back the address, this bit is lost anyway, as long as XCHAR is short (hardcoded in many places).