On Thu Sep 10 05:37:12 EDT 2009, com...@panix.com wrote:
> In article <ce56ea3d797a84d83b7c83620832b...@quanstro.net>,
> erik quanstrom <quans...@quanstro.net> wrote:
> >> gcc happily compiles a definition like
> >> #define CT_v249    ((void*)startLabel+464)
> >> 
> >
> >no it doesn't.
> >
> >$ cat > x.c
> >char *startlab;
> >long long offset = (void*)startlab+464;
> >[...]
> >$ gcc -Wall x.c
> >x.c:2: error: initializer element is not constant
> 
> That also has the issue of converting a void * to a long long,

sorry.  my mouse license has been revoked.  that
was actually void*.

- erik

Reply via email to