Title: --
Hello,

I'm trying to run the following line of code with SDCC on char *p:
        *((unsigned short*)p)++ = 0x1234;

but it returns the following error:
    P:\airway\code\reporter.c:128: error 10: 'lvalue' required for '++' operation.

As far as I know, this should be a valid code segment to store an integer at p and increment it by two characters.  It works with tcc, but not with SDCC.  Anybody know why?

Many thanks,
Berwyn
--

Berwyn Hoyt, Senior Hardware Engineer: [EMAIL PROTECTED]
Ph: +64 3 359 2101; Mobile: +64 21 045 7830
Brush Technology: www.brush.co.nz

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to