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
8b5ccc4b
Commit
8b5ccc4b
authored
Jun 29, 2007
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper types for printing
parent
1ff6c391
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
skeletons/per_opentype.c
skeletons/per_opentype.c
+1
-1
skeletons/per_support.c
skeletons/per_support.c
+5
-4
No files found.
skeletons/per_opentype.c
View file @
8b5ccc4b
...
...
@@ -183,7 +183,7 @@ uper_open_type_get_complex(asn_codec_ctx_t *ctx, asn_TYPE_descriptor_t *td,
case
0
:
break
;
default:
ASN_DEBUG
(
"Non-blank padding (%d bits 0x%02x)"
,
padding
,
pvalue
);
padding
,
(
int
)
pvalue
);
UPDRESTOREPD
;
_ASN_DECODE_FAILED
;
}
...
...
skeletons/per_support.c
View file @
8b5ccc4b
...
...
@@ -108,7 +108,7 @@ per_get_few_bits(asn_per_data_t *pd, int nbits) {
pd
->
moved
,
(((
int
)
pd
->
buffer
)
&
0xf
),
pd
->
nboff
,
pd
->
nbits
,
pd
->
nbits
-
pd
->
nboff
,
accum
);
(
int
)
accum
);
return
accum
;
}
...
...
@@ -273,7 +273,7 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
if
(
obits
<=
0
||
obits
>=
32
)
return
obits
?
-
1
:
0
;
ASN_DEBUG
(
"[PER put %d bits %x to %p+%d bits]"
,
obits
,
bits
,
po
->
buffer
,
po
->
nboff
);
obits
,
(
int
)
bits
,
po
->
buffer
,
po
->
nboff
);
/*
* Normalize position indicator.
...
...
@@ -310,7 +310,8 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
/* Clear data of debris before meaningful bits */
bits
&=
(((
uint32_t
)
1
<<
obits
)
-
1
);
ASN_DEBUG
(
"[PER out %d %u/%x (t=%d,o=%d) %x&%x=%x]"
,
obits
,
bits
,
bits
,
ASN_DEBUG
(
"[PER out %d %u/%x (t=%d,o=%d) %x&%x=%x]"
,
obits
,
(
int
)
bits
,
(
int
)
bits
,
po
->
nboff
-
obits
,
off
,
buf
[
0
],
omsk
&
0xff
,
buf
[
0
]
&
omsk
);
if
(
off
<=
8
)
/* Completely within 1 byte */
...
...
@@ -339,7 +340,7 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
}
ASN_DEBUG
(
"[PER out %u/%x => %02x buf+%d]"
,
bits
,
bits
,
buf
[
0
],
po
->
buffer
-
po
->
tmpspace
);
(
int
)
bits
,
(
int
)
bits
,
buf
[
0
],
po
->
buffer
-
po
->
tmpspace
);
return
0
;
}
...
...
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