'int' is enough for 'length' to migrate code from x86 to x64
FrankLike via Digitalmars-d
digitalmars-d at puremagic.com
Wed Nov 19 16:54:38 PST 2014
> How is that a bug? Can you provide some code that exhibits this?
If you compile the dfl Library to 64 bit,you will find error:
core.sys.windows.windows.WaitForMultipleObjects(uint
nCount,void** lpHandles,....) is not callable using argument
types(ulong,void**,...)
the 'WaitForMultipleObjects' Function is in
dmd2/src/druntime/src/core/sys/windows/windows.d
the argument of first is dfl's value ,it comes from a 'length'
,it's type is size_t,now it is 'ulong' on 64 bit.
So druntime must keep the same as phobos for size_t.
Or keep the same to int with WindowsAPI to modify the size_t to
int ?
More information about the Digitalmars-d
mailing list