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
7ae06789
Commit
7ae06789
authored
Oct 04, 2017
by
Lev Walkin
Committed by
GitHub
Oct 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #213 from ringlej/issue/212
Replace MAXFLOAT with FLT_MAX
parents
c44edc0d
35c3f0d6
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 @
7ae06789
...
...
@@ -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
;
...
...
skeletons/REAL.c
View file @
7ae06789
...
...
@@ -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
;
...
...
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