20 Oct
2007
20 Oct
'07
4:12 a.m.
Michael Stefaniuc <mstefani(a)redhat.com> writes:
Actually it's not a cast. It's a heuristic that the compiler has to make to detect a NULL pointer. The best heuristic for this is (char *) 0.
There's no heuristic involved here, the assignment is clearly to a pointer, and 0 is a perfectly valid null pointer, no cast is needed. -- Alexandre Julliard julliard(a)winehq.org