Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
e627d794
Commit
e627d794
authored
Jun 6, 2024
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
Fix type in str2uint8_arr and read_file_cmp_entity function
parent
bc56db49
No related branches found
No related tags found
1 merge request
!34
Update cmp_tool to version v0.13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
programs/cmp_io.c
+3
-3
3 additions, 3 deletions
programs/cmp_io.c
with
3 additions
and
3 deletions
programs/cmp_io.c
+
3
−
3
View file @
e627d794
...
...
@@ -1184,7 +1184,7 @@ static __inline ssize_t str2uint8_arr(const char *str, uint8_t *data, uint32_t b
{
const
char
*
nptr
=
str
;
const
char
*
eptr
=
NULL
;
size
_t
i
=
0
;
uint32
_t
i
=
0
;
errno
=
0
;
...
...
@@ -1202,7 +1202,7 @@ static __inline ssize_t str2uint8_arr(const char *str, uint8_t *data, uint32_t b
if
(
!
data
)
/* finished counting the sample */
break
;
fprintf
(
stderr
,
"%s: %s: Error: The files do not contain enough data. Expected: 0x%x, has 0x%
l
x.
\n
"
,
fprintf
(
stderr
,
"%s: %s: Error: The files do not contain enough data. Expected: 0x%x, has 0x%x.
\n
"
,
PROGRAM_NAME
,
file_name
,
buf_size
,
i
);
return
-
1
;
}
...
...
@@ -1461,7 +1461,7 @@ ssize_t read_file_cmp_entity(const char *file_name, struct cmp_entity *ent,
}
if
(
size
!=
(
ssize_t
)
cmp_ent_get_size
(
ent
))
{
fprintf
(
stderr
,
"%s: %s: The size of the compression entity set in the header of the compression entity is not the same size as the read-in file has. Expected: 0x%x, has 0x%lx.
\n
"
,
PROGRAM_NAME
,
file_name
,
cmp_ent_get_size
(
ent
),
(
size_t
)
size
);
PROGRAM_NAME
,
file_name
,
cmp_ent_get_size
(
ent
),
(
unsigned
long
)
size
);
return
-
1
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment