fixed code to work on LP64 architecture again

had to replace all intptr_ts with uintptr_ts because of INSTBASE
comparison giving useless result