Re: [Gimp-developer] 1.2 Bug Hunting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave Neary wrote:
> 
> I did think that an integer constant 0 could be used in a pointer context 
> without a cast, though...

Hi all,

I've confirmed that this code (for the case where the enum value passed
is 0) should work in any ANSI conforming compiler (according to the
impressarios of comp.lang.c anyway). Whether it's wise to do this is
another matter, but in this case it's the compiler that's broken.

Cheers,
Dave.

-- 
David Neary,               E-Mail dave.neary@xxxxxxxxxx
Palamon Technologies Ltd.  Phone +353-1-634-5059


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux