This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Use '=' for assignment in tc-mcore.c, not '=='


Hi Klee,

> This wasn't me, honest!

  :-)

> -      /* We would like to compute "hex_float (float_type) * commas"
> -	 but hex_float is not exported from read.c  */
> -      float_type == 'f' ? 4 : (float_type == 'd' ? 8 : 12);
> -      poolspan += float_type * commas;
> +      /* We would like to use the code from hex_float, but it's not
> +	 exported from read.c.  */
> +      float_size = 'f' ? 4 : (float_type == 'd' ? 8 : 12);
> +      poolspan += float_size * commas;

I think that you meant:

    float_size = (float_type == 'f' ? 4 : (float_type == 'd' ? 8 : 12));

Cheers
        Nick


        


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]