Commit 35c3f0d6 authored by Jon Ringle's avatar Jon Ringle

Replace MAXFLOAT with FLT_MAX

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