Hi Peter,

2007/11/12, Peter Kuhar <[EMAIL PROTECTED]>:
> On Nov 12, 2007 2:42 PM, Alan Carvalho de Assis <[EMAIL PROTECTED]> wrote:
>
> this type of adding int to pointer is rarely valid( depends on compiler ).
> It would be better to use ++(&descromarea) or &(&descromarea)[1] if
> this was you intention.
>

The first suggestion don't works to SDCC, but the second one works. Thank you!

> anyway, you should avoid this kind of hacking, why dont you just
> directly access the structure?
>

Well, I'm just compiling the original source code (from PICos18), I am
using the same approach used in this code.

> --
> Peter
>

Alan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to