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
60a9e53d
Unverified
Commit
60a9e53d
authored
Mar 31, 2024
by
Mouse
Committed by
GitHub
Mar 31, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update check-INTEGER.c
Try to fix format-related compiler warnings for all systems
parent
1d155c23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
tests/tests-skeletons/check-INTEGER.c
tests/tests-skeletons/check-INTEGER.c
+9
-9
No files found.
tests/tests-skeletons/check-INTEGER.c
View file @
60a9e53d
...
@@ -103,7 +103,7 @@ check_unsigned(uint8_t *buf, int size, unsigned long check_long, int check_ret)
...
@@ -103,7 +103,7 @@ check_unsigned(uint8_t *buf, int size, unsigned long check_long, int check_ret)
printf
(
"]: "
);
printf
(
"]: "
);
ret
=
asn_INTEGER2ulong
(
&
val
,
&
rlong
);
ret
=
asn_INTEGER2ulong
(
&
val
,
&
rlong
);
printf
(
" (%
lu, %d) vs (%l
u, %d)
\n
"
,
printf
(
" (%
ju, %d) vs (%j
u, %d)
\n
"
,
rlong
,
ret
,
check_long
,
check_ret
);
rlong
,
ret
,
check_long
,
check_ret
);
assert
(
ret
==
check_ret
);
assert
(
ret
==
check_ret
);
assert
(
rlong
==
check_long
);
assert
(
rlong
==
check_long
);
...
@@ -134,7 +134,7 @@ check_unsigned(uint8_t *buf, int size, unsigned long check_long, int check_ret)
...
@@ -134,7 +134,7 @@ check_unsigned(uint8_t *buf, int size, unsigned long check_long, int check_ret)
ret
=
INTEGER_print
(
&
asn_DEF_INTEGER
,
&
val
,
0
,
_print2buf
,
scratch
);
ret
=
INTEGER_print
(
&
asn_DEF_INTEGER
,
&
val
,
0
,
_print2buf
,
scratch
);
assert
(
shared_scratch_start
<
scratch
+
sizeof
(
scratch
));
assert
(
shared_scratch_start
<
scratch
+
sizeof
(
scratch
));
assert
(
ret
==
0
);
assert
(
ret
==
0
);
ret
=
snprintf
(
verify
,
sizeof
(
verify
),
"%
l
u"
,
check_long
);
ret
=
snprintf
(
verify
,
sizeof
(
verify
),
"%
j
u"
,
check_long
);
assert
(
ret
<
(
int
)
sizeof
(
verify
));
assert
(
ret
<
(
int
)
sizeof
(
verify
));
ret
=
strcmp
(
scratch
,
verify
);
ret
=
strcmp
(
scratch
,
verify
);
printf
(
" [%s] vs [%s]: %d%s
\n
"
,
printf
(
" [%s] vs [%s]: %d%s
\n
"
,
...
@@ -154,7 +154,7 @@ check_64(uint8_t *buf, size_t size, int64_t check_i64, int check_ret) {
...
@@ -154,7 +154,7 @@ check_64(uint8_t *buf, size_t size, int64_t check_i64, int check_ret) {
char
verify
[
32
];
char
verify
[
32
];
INTEGER_t
val
;
INTEGER_t
val
;
uint8_t
*
buf_end
=
buf
+
size
;
uint8_t
*
buf_end
=
buf
+
size
;
int
ret
;
int
ret
=
0
;
int64_t
rint64
=
123
;
int64_t
rint64
=
123
;
assert
(
buf
);
assert
(
buf
);
...
@@ -216,7 +216,7 @@ check_unsigned_64(uint8_t *buf, int size, uint64_t check_u64, int check_ret) {
...
@@ -216,7 +216,7 @@ check_unsigned_64(uint8_t *buf, int size, uint64_t check_u64, int check_ret) {
char
verify
[
32
];
char
verify
[
32
];
INTEGER_t
val
;
INTEGER_t
val
;
uint8_t
*
buf_end
=
buf
+
size
;
uint8_t
*
buf_end
=
buf
+
size
;
int
ret
;
int
ret
=
-
1
;
uint64_t
ruint64
=
123
;
uint64_t
ruint64
=
123
;
assert
(
buf
);
assert
(
buf
);
...
@@ -283,7 +283,7 @@ check_xer(int lineno, int tofail, char *xmldata, long orig_value) {
...
@@ -283,7 +283,7 @@ check_xer(int lineno, int tofail, char *xmldata, long orig_value) {
INTEGER_t
*
st
=
0
;
INTEGER_t
*
st
=
0
;
asn_dec_rval_t
rc
;
asn_dec_rval_t
rc
;
long
value
;
long
value
;
int
ret
;
int
ret
=
-
1
;
printf
(
"%03d: [%s] vs %ld: "
,
lineno
,
xmldata
,
orig_value
);
printf
(
"%03d: [%s] vs %ld: "
,
lineno
,
xmldata
,
orig_value
);
...
@@ -314,8 +314,8 @@ static void
...
@@ -314,8 +314,8 @@ static void
check_jer
(
int
lineno
,
int
tofail
,
char
*
jsondata
,
long
orig_value
)
{
check_jer
(
int
lineno
,
int
tofail
,
char
*
jsondata
,
long
orig_value
)
{
INTEGER_t
*
st
=
0
;
INTEGER_t
*
st
=
0
;
asn_dec_rval_t
rc
;
asn_dec_rval_t
rc
;
long
value
;
long
value
=
0
;
int
ret
;
int
ret
=
-
1
;
printf
(
"%03d: [%s] vs %ld: "
,
lineno
,
jsondata
,
orig_value
);
printf
(
"%03d: [%s] vs %ld: "
,
lineno
,
jsondata
,
orig_value
);
fflush
(
stdout
);
fflush
(
stdout
);
...
@@ -350,9 +350,9 @@ check_strtoimax() {
...
@@ -350,9 +350,9 @@ check_strtoimax() {
char
positive_max
[
32
];
char
positive_max
[
32
];
char
negative_min
[
32
];
char
negative_min
[
32
];
const
int
len_pmax
=
snprintf
(
positive_max
,
sizeof
(
positive_max
),
const
int
len_pmax
=
snprintf
(
positive_max
,
sizeof
(
positive_max
),
"
+%"
ASN_PRId64
,
intmax_max
);
"
jd"
,
intmax_max
);
const
int
len_nmin
=
snprintf
(
negative_min
,
sizeof
(
negative_min
),
const
int
len_nmin
=
snprintf
(
negative_min
,
sizeof
(
negative_min
),
"%
"
ASN_PRId64
,
intmax_min
);
"%
jd"
,
intmax_min
);
assert
(
len_pmax
<
(
int
)
sizeof
(
positive_max
));
assert
(
len_pmax
<
(
int
)
sizeof
(
positive_max
));
assert
(
len_nmin
<
(
int
)
sizeof
(
negative_min
));
assert
(
len_nmin
<
(
int
)
sizeof
(
negative_min
));
...
...
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