Go to the FreeLists Home Page Home Signup Help Login
 



Browse interfacekit: This Month's ArchiveMain Archive PageRelated postsPrevious by DateNext by Date

[interfacekit] Re: OBOS Support kit doesn't compile: solution

  • From: Jack Burton <burton666@xxxxxxxxx>
  • To: interfacekit@xxxxxxxxxxxxx
  • Date: Fri, 20 Sep 2002 06:44:51 +0200
On 2002-09-20 at 06:22:09 [+0200], you wrote:

> The "buffer" local is "const void *" so the static_cast is trying to go 
> from a "const void *" to a "char *".  However, strdup() takes a "const 
> char *" so the following should also work:
> 
> fPropInfo[pi].name=strdup(static_cast<const char *>(buffer)+
> flatData.Position());

Yeah, I can check in the change, if no one complains.

> I can't explain why myself nor Ingo cannot reproduce this.  There must 
> be some difference between the compilers being used out there which is 
> a bit scary.  However, I agree that this code is a defect.

What compiler are you using?
Mine is the one on GeekGadgets.


-- 
Qui e' Jack Burton, del Pork-Chop Express,
che parla a chiunque sia in ascolto...

http://digilander.iol.it/burton666/index.html

Other related posts:

  • [interfacekit] OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution
  • [interfacekit] Re: OBOS Support kit doesn't compile: solution




  • [ Home | Signup | Help | Login | Archives | Lists ]

    All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
    Everything else ©2008 Avenir Technologies, LLC.