June 12, 2003 pb when import windows.d | ||||
---|---|---|---|---|
| ||||
When I import windows.d, the dmd compiler stop with the following error : "cannot implicitly convert uint to int" at the line 999 : const int MAXDWORD = (0xFFFFFFFF); is there a problem with hexadecimals in D ? Please help... |
June 13, 2003 Re: pb when import windows.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to sam | > When I import windows.d, the dmd compiler stop with the following error :
>
> "cannot implicitly convert uint to int"
>
> at the line 999 : const int MAXDWORD = (0xFFFFFFFF);
>
> is there a problem with hexadecimals in D ?
It's in the error message. The value you specify is outside of the range of a normal int - you either have to use uint (unsigned int) or specify it as -1 instead.
-fg
|
Copyright © 1999-2021 by the D Language Foundation