D - "cannot implicitly convert uint to int"
- Sam (5/5) Jun 12 2003 That's the error message the dmd compiler give me
- Helmut Leitner (10/19) Jun 12 2003 The line should read
- Mark T (1/6) Jun 13 2003 DWORD = 32 bit unsigned int
- Helmut Leitner (7/17) Jun 13 2003 Yes, but I think that a compiler might alternatively interpret
- Fabian Giesen (4/18) Jun 13 2003 I rather think his point was that the constant should be uint,
- sam (5/21) Jun 13 2003 I tried to cast the hexadecimal number to (int) but it doesn't work eith...
That's the error message the dmd compiler give me when I import windows.d : line 999: const int MAXDWORD = (0xFFFFFFFF); is there a bug with hexadecimal numbers ? before i install 0.66, this error never occurs. Please help me !
Jun 12 2003
Sam wrote:That's the error message the dmd compiler give me when I import windows.d : line 999: const int MAXDWORD = (0xFFFFFFFF); is there a bug with hexadecimal numbers ? before i install 0.66, this error never occurs. Please help me !The line should read const int MAXDWORD = (int)(0xFFFFFFFF); I think the compiler got this "feature" in version 0.61 A revised windows.d file was posted by someone here in the newsgroup (there weree about hundred lines that had to be changed) If you don't find it easily, I can send you a copy. -- Helmut Leitner leitner hls.via.at Graz, Austria www.hls-software.com
Jun 12 2003
DWORD = 32 bit unsigned intbefore i install 0.66, this error never occurs. Please help me !The line should read const int MAXDWORD = (int)(0xFFFFFFFF); I think the compiler got this "feature" in version 0.61
Jun 13 2003
Mark T wrote:Yes, but I think that a compiler might alternatively interpret 0xFFFFFFFF as "bit pattern" constant in this context (in fact we do). -- Helmut Leitner leitner hls.via.at Graz, Austria www.hls-software.comDWORD = 32 bit unsigned intbefore i install 0.66, this error never occurs. Please help me !The line should read const int MAXDWORD = (int)(0xFFFFFFFF); I think the compiler got this "feature" in version 0.61
Jun 13 2003
Helmut Leitner wrote:Mark T wrote:I rather think his point was that the constant should be uint, not int :) -fgYes, but I think that a compiler might alternatively interpret 0xFFFFFFFF as "bit pattern" constant in this context (in fact we do).DWORD = 32 bit unsigned intbefore i install 0.66, this error never occurs. Please help me !The line should read const int MAXDWORD = (int)(0xFFFFFFFF); I think the compiler got this "feature" in version 0.61
Jun 13 2003
Sam wrote:I tried to cast the hexadecimal number to (int) but it doesn't work either the only way to compile is to change "const int" into "const uint" i'm interested to this version of windows.d you were talking about ( i tried but can't find it in the newsgroup ) could you please EMail it to me ? thanx in advance.That's the error message the dmd compiler give me when I import windows.d : line 999: const int MAXDWORD = (0xFFFFFFFF); is there a bug with hexadecimal numbers ? before i install 0.66, this error never occurs. Please help me !The line should read const int MAXDWORD = (int)(0xFFFFFFFF); I think the compiler got this "feature" in version 0.61 A revised windows.d file was posted by someone here in the newsgroup (there weree about hundred lines that had to be changed) If you don't find it easily, I can send you a copy
Jun 13 2003