Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
35c3f0d6
Commit
35c3f0d6
authored
7 years ago
by
Jon Ringle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace MAXFLOAT with FLT_MAX
parent
c44edc0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
skeletons/NativeReal.c
skeletons/NativeReal.c
+2
-1
skeletons/REAL.c
skeletons/REAL.c
+2
-1
No files found.
skeletons/NativeReal.c
View file @
35c3f0d6
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
skeletons/REAL.c
View file @
35c3f0d6
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment