[committed] fix new warning in symbols.c
Eric Christopher
echristo@redhat.com
Mon Apr 11 00:19:00 GMT 2005
> >
> > - return &s->sy_value.X_add_number;
> > + return (valueT *)&s->sy_value.X_add_number;
>
> Slightly better is to return the same type as sy_value.X_add_number, and
> cast lsy_value. I've made that change, and would have beaten you to the
> commit if I hadn't been properly testing it. :)
>
Quite. I didn't actually look closely at the code beyond the return type
of the function.
thanks.
-eric
More information about the Binutils
mailing list