From 523d94ae4c615aab9c2143dd69a935539ee04bf3 Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Fri, 18 Mar 2005 14:04:07 +0000 Subject: [PATCH] -Wunsigned fixes. --- tools/winebuild/build.h | 2 +- tools/winebuild/res16.c | 9 +++++---- tools/winebuild/res32.c | 8 ++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/tools/winebuild/build.h b/tools/winebuild/build.h index 28d3e8ede0..99d8cab6de 100644 --- a/tools/winebuild/build.h +++ b/tools/winebuild/build.h @@ -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 */ diff --git a/tools/winebuild/res16.c b/tools/winebuild/res16.c index 17ff05f341..44576e2ed3 100644 --- a/tools/winebuild/res16.c +++ b/tools/winebuild/res16.c @@ -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; diff --git a/tools/winebuild/res32.c b/tools/winebuild/res32.c index ca90d7124b..7a713f8b01 100644 --- a/tools/winebuild/res32.c +++ b/tools/winebuild/res32.c @@ -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; -- 2.32.0.93.g670b81a890