[mcs] Extend int to native int when doing pointer arithmetic on it. Fixes #36839