[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: kdebase/kdm/backend
From:       "Friedrich W. H.  Kossebau" <Friedrich.W.H () Kossebau ! de>
Date:       2004-01-19 9:55:49
Message-ID: 200401191055.49486.Friedrich.W.H () Kossebau ! de
[Download RAW message or body]

Am Montag, 19. Januar 2004 10:54 schrieb Oswald Buddenhagen:
> On Mon, Jan 19, 2004 at 10:48:20AM +0100, Friedrich W. H. Kossebau wrote:
> > Am Sonntag, 18. Januar 2004 22:45 schrieb Oswald Buddenhagen:
> > > CVS commit by ossi:
> > >
> > > sizeof(int) != sizeof(char*) fixes
> > >
> > > -        if (StrApp (&mfname, dmrcDir, "/", curuser, fname, 0))
> > > +        if (StrApp (&mfname, dmrcDir, "/", curuser, fname, (char *)0))
> >
> > Want to learn something: Where does this fail? Isn't 0 a correct value
> > for a pointer within C? Are their compilers that do not cast correctly?
> > Is this why there sometimes 0L is used? (Would NULL be a the solution, or
> > is this not a standard keyword?)
>
> this is a variable argument list, so the compiler cannot know whether
> the zero is meant to be an integer or pointer, so it assumes the default
> - integer. this is a problem, if their sizes differ.

Ah, thanks. :)

Friedrich
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic