On 2014-03-06 09:24:13 +0100, Anton Khirnov wrote:
> The values of {FLT,DBL}_{MAX,MIN} macros on some systems (older musl
> libc, some BSD flavours) are not exactly representable, i.e.
> (double)DBL_MAX == DBL_MAX is false
> This violates (at least some interpretations of) the C99 standard and
> breaks code (e.g. in vf_fps) like
> double f = DBL_MAX;
> [...]
> if (f == DBL_MAX) { // f has not been changed yet
>     [....]
> }
> ---
> Martynas is not replying to pings (and we'd have to support current broken
> systems anyway), so resending this. I've discovered the same problem in musl
> (where it's already fixed), so amended the description to not be bsd-specific.
> ---
>  compat/float/float.h  |   35 +++++++++++++++++++++++++++++++++++
>  compat/float/limits.h |   22 ++++++++++++++++++++++
>  configure             |   14 ++++++++++++++
>  3 files changed, 71 insertions(+)
>  create mode 100644 compat/float/float.h
>  create mode 100644 compat/float/limits.h

ok

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to