grcm: fix issue with Uint32 to Ptr conversion