Fix for bitshift errors lint on cross compilation #18587

Uses the target architecture int size for checks on cross compilation

Closes #18587