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
758aeadd
Commit
758aeadd
authored
7 years ago
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove excessive useless integer conversion width
parent
e24bad1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
skeletons/NativeEnumerated_oer.c
skeletons/NativeEnumerated_oer.c
+4
-4
No files found.
skeletons/NativeEnumerated_oer.c
View file @
758aeadd
...
...
@@ -9,14 +9,14 @@
#include <NativeEnumerated.h>
#include <errno.h>
static
intmax_t
static
long
asn__nativeenumerated_convert
(
const
uint8_t
*
b
,
const
uint8_t
*
end
)
{
u
intmax_t
value
;
u
nsigned
long
value
;
/* Perform the sign initialization */
/* Actually value = -(*b >> 7); gains nothing, yet unreadable! */
if
((
*
b
>>
7
))
{
value
=
(
u
intmax_t
)(
-
1
);
value
=
(
u
nsigned
long
)(
-
1
);
}
else
{
value
=
0
;
}
...
...
@@ -62,7 +62,7 @@ NativeEnumerated_decode_oer(const asn_codec_ctx_t *opt_codec_ctx,
*/
size_t
length
=
*
b
&
0x7f
;
const
uint8_t
*
bend
;
intmax_t
value
;
long
value
;
if
(
length
<
1
||
length
>
sizeof
(
*
native
))
{
ASN__DECODE_FAILED
;
...
...
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