Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4d11eba0
Commit
4d11eba0
authored
Jun 30, 2005
by
Stefan Huehner
Committed by
Alexandre Julliard
Jun 30, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some -Wsign-compare warnings.
parent
6580ae03
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
genres.c
tools/wrc/genres.c
+2
-2
genres.h
tools/wrc/genres.h
+1
-1
wrctypes.h
tools/wrc/wrctypes.h
+4
-4
writeres.c
tools/wrc/writeres.c
+1
-1
No files found.
tools/wrc/genres.c
View file @
4d11eba0
...
...
@@ -55,7 +55,7 @@ res_t *new_res(void)
return
r
;
}
res_t
*
grow_res
(
res_t
*
r
,
int
add
)
res_t
*
grow_res
(
res_t
*
r
,
unsigned
int
add
)
{
r
->
allocsize
+=
add
;
r
->
data
=
(
char
*
)
xrealloc
(
r
->
data
,
r
->
allocsize
);
...
...
@@ -407,7 +407,7 @@ static void put_lvc(res_t *res, lvc_t *lvc)
*/
static
void
put_raw_data
(
res_t
*
res
,
raw_data_t
*
raw
,
int
offset
)
{
int
wsize
=
raw
->
size
-
offset
;
unsigned
int
wsize
=
raw
->
size
-
offset
;
if
(
res
->
allocsize
-
res
->
size
<
wsize
)
grow_res
(
res
,
wsize
);
memcpy
(
&
(
res
->
data
[
res
->
size
]),
raw
->
data
+
offset
,
wsize
);
...
...
tools/wrc/genres.h
View file @
4d11eba0
...
...
@@ -24,7 +24,7 @@
#include "wrctypes.h"
res_t
*
new_res
(
void
);
res_t
*
grow_res
(
res_t
*
r
,
int
add
);
res_t
*
grow_res
(
res_t
*
r
,
unsigned
int
add
);
void
put_byte
(
res_t
*
res
,
unsigned
c
);
void
put_word
(
res_t
*
res
,
unsigned
w
);
void
put_dword
(
res_t
*
res
,
unsigned
d
);
...
...
tools/wrc/wrctypes.h
View file @
4d11eba0
...
...
@@ -87,10 +87,10 @@
#define RES_BLOCKSIZE 512
typedef
struct
res
{
int
allocsize
;
/* Allocated datablock size */
int
size
;
/* Actual size of data */
int
dataidx
;
/* Tag behind the resource-header */
char
*
data
;
unsigned
int
allocsize
;
/* Allocated datablock size */
unsigned
int
size
;
/* Actual size of data */
unsigned
int
dataidx
;
/* Tag behind the resource-header */
char
*
data
;
}
res_t
;
/* Resource strings are slightly more complex because they include '\0' */
...
...
tools/wrc/writeres.c
View file @
4d11eba0
...
...
@@ -47,7 +47,7 @@
void
write_resfile
(
char
*
outname
,
resource_t
*
top
)
{
FILE
*
fo
;
int
ret
;
unsigned
int
ret
;
char
zeros
[
3
]
=
{
0
,
0
,
0
};
fo
=
fopen
(
outname
,
"wb"
);
...
...
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