On Tue, Oct 19, 2010 at 11:59 PM, Mike Frysinger <[email protected]> wrote: >> gjt :-) > i'm not familiar with the acronym
great ;-) >> I want to keep the cast because I am not familiar enough with the code >> to judge what happens if I omit the cast > > the point is of type "void *". C does not need an explicit cast to go from > "void *" to anything else. C++ might barf on you without an explicit cast, > but this isnt C++. > > if you were doing an offset, then the cast might be ncessary to get the right > type before doing the math. but that isnt the case either. Yes, data needs to be casted onto "void *". Some time ago in one project I changed a bit the structure of a code I did not know well and it had bad consequences, so generally I try to use existing parse if possible with minor changes ;-) Anyway thanks for hint :-) I can see that changes are commited as #1863 - thank you Mike :-) Best regards, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
