Re: Simple .d file passed in -m32 model, but failed in -m64 model. Why?

2011-02-20 Thread David Nadlinger
On 2/20/11 3:25 PM, David Wang wrote: Why the same source file shows different results? Because the array index »i« in your foreach loop is of type size_t, which is uint (32 bit wide) on x86_32 and ulong (64 bit wide) on x86_64. By the way, using D2, a shorter way to initialize the array wou

Simple .d file passed in -m32 model, but failed in -m64 model. Why?

2011-02-20 Thread David Wang
Thank you Brad Roberts, at first I remove MinGW's PATHs in my system, and then I successfully compiled the DMD, then I added back the MinGW's PATHs to the system. :-) But, when I in Linux (Fedora 14 X86_64) system, I compiled a simple d file in 32bit model and 64 bit model I got different result