Commit ad4c63da authored by Lev Walkin's avatar Lev Walkin

check for defines instead of guessing

parent fb469129
...@@ -556,8 +556,14 @@ NativeReal_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, ...@@ -556,8 +556,14 @@ NativeReal_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
-4503599627370496.0, 4503599627370496.0, -4503599627370496.0, 4503599627370496.0,
/* 2^100 */ /* 2^100 */
-1267650600228229401496703205376.0, 1267650600228229401496703205376.0, -1267650600228229401496703205376.0, 1267650600228229401496703205376.0,
#if __STDC_VERSION__ >= 199901L -FLT_MIN, FLT_MIN,
-FLT_MAX, FLT_MAX, -FLT_MAX, FLT_MAX,
-DBL_MIN, DBL_MIN,
-DBL_MAX, DBL_MAX,
#ifdef FLT_TRUE_MIN
-FLT_TRUE_MIN, FLT_TRUE_MIN,
#endif
#ifdef DBL_TRUE_MIN
-DBL_TRUE_MIN, DBL_TRUE_MIN, -DBL_TRUE_MIN, DBL_TRUE_MIN,
#endif #endif
INFINITY, -INFINITY, NAN}; INFINITY, -INFINITY, NAN};
......
...@@ -952,8 +952,14 @@ REAL_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, ...@@ -952,8 +952,14 @@ REAL_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
-4503599627370496.0, 4503599627370496.0, -4503599627370496.0, 4503599627370496.0,
/* 2^100 */ /* 2^100 */
-1267650600228229401496703205376.0, 1267650600228229401496703205376.0, -1267650600228229401496703205376.0, 1267650600228229401496703205376.0,
#if __STDC_VERSION__ >= 199901L -FLT_MIN, FLT_MIN,
-FLT_MAX, FLT_MAX, -FLT_MAX, FLT_MAX,
-DBL_MIN, DBL_MIN,
-DBL_MAX, DBL_MAX,
#ifdef FLT_TRUE_MIN
-FLT_TRUE_MIN, FLT_TRUE_MIN,
#endif
#ifdef DBL_TRUE_MIN
-DBL_TRUE_MIN, DBL_TRUE_MIN, -DBL_TRUE_MIN, DBL_TRUE_MIN,
#endif #endif
INFINITY, -INFINITY, NAN}; INFINITY, -INFINITY, NAN};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment