On 07/26/2012 05:42 AM, Ronald S. Bultje wrote:
> From: "Ronald S. Bultje" <[email protected]>
> 
> This fixes "make fate-eval" on MSVC builds. Without this, the test outputs
> "-1.#NaN" instead of "nan" on MSVS 2010.
> ---
>  libavutil/eval.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/libavutil/eval.c b/libavutil/eval.c
> index ef37ad8..6131263 100644
> --- a/libavutil/eval.c
> +++ b/libavutil/eval.c
> @@ -671,6 +671,11 @@ int main(int argc, char **argv)
>          av_expr_parse_and_eval(&d, *expr,
>                                 const_names, const_values,
>                                 NULL, NULL, NULL, NULL, NULL, 0, NULL);
> +#ifdef _MSC_VER
> +        if (isnan(d))
> +            printf("'%s' -> nan\n\n", *expr);
> +        else
> +#endif
>          printf("'%s' -> %f\n\n", *expr, d);
>      }
>  

probably not worthy replacing the whole printf.

Do we have other faulty implementations?

lu

-- 

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero

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

Reply via email to