removed int cast in TAGMASK as suggested by nsz