Thanks, Anton. You can't do explicit casts as the standard mandates that those macros be constant expressions.
Moreover, GCC itself exports those exact same values via __DBL_MAX builtins, which are not double-precision anymore when used. Please be sure to report this to GCC. On Tue, Nov 19, 2013 at 12:54 PM, Anton Khirnov <[email protected]> wrote: > > 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
