On Fri, Nov 20, 2009 at 10:07 AM,  <lu...@proxima.alt.za> wrote:
> From the Go compiler sources (cmd/gc/const.c:51...):
>
>        /*
>         * convert n, if literal, to type t.
>         * implicit conversion.
>         */
>        void
>        convlit(Node **np, Type *t)
>        {
>                return convlit1(np, t, 0);
>        }
>
>        /*
>         * convert n, if literal, to type t.
>         * return a new node if necessary
>         * (if n is a named constant, can't edit n->type directly).
>         */
>        void
>        convlit1(Node **np, Type *t, int explicit)
>        {
>                int ct, et;
>                Node *n, *nn;
>        ...
>
> There's got to be a return type for both of these that actually makes
> sense?  As it stands, the Plan 9 native C compiler objects.

s/return //

It's just a bug left over from when convlit and convlit1
did return things.  Gcc apparently lets you do this.

Russ

Reply via email to