Try this in a project with a quick console mode that targets x64 and looks in the "Disassembly" window:
long long l1 = 1; 000000013F151035 mov qword ptr [rsp],1
Same code when targeting x86:
long long l1 = 1; 010213EE mov dword ptr [l1],1 010213F5 mov dword ptr [ebp-8],0
Slam dunk, you donβt really look at the x64 build of your program. Use "Build + Configuration Manager" to fix this.
source share