[Cfp-interest 1661] Re: payload missing const
Mike Cowlishaw
mfc at speleotrove.com
Wed Jun 24 07:26:18 PDT 2020
I'd change 'oversite' to 'oversight'.
Mike
> -----Original Message-----
> On Fri, 19 Jun 2020 10:11:01 -0700 (PDT) Fred J. Tydeman wrote:
> >
> > Missing 'const' in *payload. Editorial or new paper?
> > AI: Fred - write paper saying missed.
>
> Here is the text version. If this is OK, I will make an HTML
> version for WG14.
>
> The binary getpayload functions (WG14 N2478 Annex B.11 and F.10.13.1):
>
> double getpayload(const double *x);
> float getpayloadf(const float *x);
> long double getpayloadl(const long double *x);
>
> have 'const' in the parameter.
>
> While the corresponding decimal functions:
>
> _Decimal32 getpayloadd32(_Decimal32 *x);
> _Decimal64 getpayloadd64(_Decimal64 *x);
> _Decimal128 getpayloadd128(_Decimal128 *x);
>
> are missing that 'const'. This was an oversite by the CFP committee.
>
> 'const' should be added to the three decimal getpayloaddN
> functions as:
>
> _Decimal32 getpayloadd32(const _Decimal32 *x);
> _Decimal64 getpayloadd64(const _Decimal64 *x);
> _Decimal128 getpayloadd128(const _Decimal128 *x);
>
More information about the Cfp-interest
mailing list