My apologies to the {Open,Net}BSD projects.
It seems (as was pointed out to me by Michael Kostylev) that the problem in gcc
is
also present in the vanilla gnu version. I can reproduce it on my Linux box with
gcc 4.{6,7,8} (but not 4.4) by adding
#undef DBL_MAX
#define DBL_MAX 1.7976931348623157e+308
to the test program and compiling with -m32. It will then print 0.
Probably the easiest workaround is adding the explicit cast to double to your
value in limits.h, not sure what The Proper Solution(tm) would be.
--
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel