Commit 7ae06789 authored by Lev Walkin's avatar Lev Walkin Committed by GitHub

Merge pull request #213 from ringlej/issue/212

Replace MAXFLOAT with FLT_MAX
parents c44edc0d 35c3f0d6
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <REAL.h> #include <REAL.h>
#include <OCTET_STRING.h> #include <OCTET_STRING.h>
#include <math.h> #include <math.h>
#include <float.h>
#if defined(__clang__) #if defined(__clang__)
/* /*
...@@ -555,7 +556,7 @@ NativeReal_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, ...@@ -555,7 +556,7 @@ NativeReal_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
/* 2^100 */ /* 2^100 */
-1267650600228229401496703205376.0, 1267650600228229401496703205376.0, -1267650600228229401496703205376.0, 1267650600228229401496703205376.0,
#if __STDC_VERSION__ >= 199901L #if __STDC_VERSION__ >= 199901L
-MAXFLOAT, MAXFLOAT, -FLT_MAX, FLT_MAX,
#endif #endif
INFINITY, -INFINITY, NAN}; INFINITY, -INFINITY, NAN};
double *st; double *st;
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <asn_internal.h> #include <asn_internal.h>
#include <stdlib.h> /* for strtod(3) */ #include <stdlib.h> /* for strtod(3) */
#include <math.h> #include <math.h>
#include <float.h>
#include <errno.h> #include <errno.h>
#include <REAL.h> #include <REAL.h>
#include <OCTET_STRING.h> #include <OCTET_STRING.h>
...@@ -868,7 +869,7 @@ REAL_random_fill(const asn_TYPE_descriptor_t *td, void **sptr, ...@@ -868,7 +869,7 @@ REAL_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
/* 2^100 */ /* 2^100 */
-1267650600228229401496703205376.0, 1267650600228229401496703205376.0, -1267650600228229401496703205376.0, 1267650600228229401496703205376.0,
#if __STDC_VERSION__ >= 199901L #if __STDC_VERSION__ >= 199901L
-MAXFLOAT, MAXFLOAT, -FLT_MAX, FLT_MAX,
#endif #endif
INFINITY, -INFINITY, NAN}; INFINITY, -INFINITY, NAN};
REAL_t *st; REAL_t *st;
......
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