But that doesn't work with ULONG_PTR, unless you want to add #ifdef
_WIN64 ... #else ... #endif
Timo
Alex Ionescu wrote:
> 1) Ask yourself why the compiler is emitting a warning when you use -1
> 2) Ask yourself how you are "fixing" this -- forcibly casting the type
> to silence the compiler. In other words, you are doing this:
>
> int foo(int* ptrToNumber);
> ...
> {
> int number = 5;
> foo((int*)number); // Hmm, compiler warns I need an int*... let me
> typecast, it seems to fix the warning.
> }
> 3) Ask yourself what ULONG means
> 4) And then ask yourself what -1 means
>
> If you still don't get it, go read a book on C.
>
> Best regards,
> Alex Ionescu
>
>
>
>
_______________________________________________
Ros-dev mailing list
[email protected]
http://www.reactos.org/mailman/listinfo/ros-dev