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
4c97bd61
Commit
4c97bd61
authored
Aug 15, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some platforms don't have INTxx_MIN
parent
0f5d74c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
libasn1compiler/asn1c_misc.c
libasn1compiler/asn1c_misc.c
+5
-2
No files found.
libasn1compiler/asn1c_misc.c
View file @
4c97bd61
...
...
@@ -257,9 +257,12 @@ asn1c_type_fits_long(arg_t *arg, asn1p_expr_t *expr) {
* Since we don't know the sizeof(long) on the possible target platform
* which will be compiling the code generated by asn1c, let's play it
* simple: long's range is equal to or greater than int32_t.
* NOTE: the most negative integer cannot be written in C, as the C99
* standard will give it an unsigned type.
* It is defined here as a constant expression.
*/
#define LEFTMIN
INT32_MIN
#define RIGHTMAX
INT32_MAX
#define LEFTMIN
2147483647
#define RIGHTMAX
(-LEFTMIN-1)
/* Descend to the terminal type */
expr
=
asn1f_find_terminal_type_ex
(
arg
->
asn
,
expr
);
...
...
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