C: fix #262, -Woverflow POSIX constant warnings

special-case DBL_MAX,DBL_MIN,LONG_MIN,LONG_MAX.
These are even fatal on MSVC.