-Wunsigned fixes.
This commit is contained in:
parent
b98d045e02
commit
523d94ae4c
|
@ -98,7 +98,7 @@ typedef struct
|
|||
int nb_entry_points; /* number of used entry points */
|
||||
int alloc_entry_points; /* number of allocated entry points */
|
||||
int nb_names; /* number of entry points with names */
|
||||
int nb_resources; /* number of resources */
|
||||
unsigned int nb_resources; /* number of resources */
|
||||
int characteristics; /* characteristics for the PE header */
|
||||
int subsystem; /* subsystem id */
|
||||
int subsystem_major; /* subsystem version major number */
|
||||
|
|
|
@ -217,7 +217,7 @@ static int cmp_res( const void *ptr1, const void *ptr2 )
|
|||
/* build the 2-level (type,name) resource tree */
|
||||
static struct res_tree *build_resource_tree( DLLSPEC *spec )
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
struct res_tree *tree;
|
||||
struct res_type *type = NULL;
|
||||
|
||||
|
@ -272,7 +272,8 @@ int output_res16_data( FILE *outfile, DLLSPEC *spec )
|
|||
{
|
||||
const struct resource *res;
|
||||
unsigned char *buffer, *p;
|
||||
int i, total;
|
||||
unsigned int i;
|
||||
int total;
|
||||
|
||||
if (!spec->nb_resources) return 0;
|
||||
|
||||
|
@ -294,8 +295,8 @@ int output_res16_data( FILE *outfile, DLLSPEC *spec )
|
|||
/* output the resource definitions */
|
||||
int output_res16_directory( unsigned char *buffer, DLLSPEC *spec )
|
||||
{
|
||||
int i, offset, res_offset = 0;
|
||||
unsigned int j;
|
||||
int offset, res_offset = 0;
|
||||
unsigned int i, j;
|
||||
struct res_tree *tree;
|
||||
const struct res_type *type;
|
||||
const struct resource *res;
|
||||
|
|
|
@ -269,7 +269,7 @@ static int cmp_res( const void *ptr1, const void *ptr2 )
|
|||
/* build the 3-level (type,name,language) resource tree */
|
||||
static struct res_tree *build_resource_tree( DLLSPEC *spec )
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
struct res_tree *tree;
|
||||
struct res_type *type = NULL;
|
||||
struct res_name *name = NULL;
|
||||
|
@ -299,7 +299,7 @@ static struct res_tree *build_resource_tree( DLLSPEC *spec )
|
|||
/* free the resource tree */
|
||||
static void free_resource_tree( struct res_tree *tree )
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < tree->nb_types; i++) free( tree->types[i].names );
|
||||
free( tree->types );
|
||||
|
@ -320,8 +320,8 @@ static void output_string( FILE *outfile, const WCHAR *name )
|
|||
/* output the resource definitions */
|
||||
void output_resources( FILE *outfile, DLLSPEC *spec )
|
||||
{
|
||||
int i, j, k, nb_id_types;
|
||||
unsigned int n, offset, data_offset;
|
||||
int j, k, nb_id_types;
|
||||
unsigned int i, n, offset, data_offset;
|
||||
struct res_tree *tree;
|
||||
struct res_type *type;
|
||||
struct res_name *name;
|
||||
|
|
Loading…
Reference in New Issue