-Wunsigned fixes.
diff --git a/tools/winebuild/build.h b/tools/winebuild/build.h index 28d3e8e..99d8cab 100644 --- a/tools/winebuild/build.h +++ b/tools/winebuild/build.h
@@ -98,7 +98,7 @@ 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 17ff05f..44576e2 100644 --- a/tools/winebuild/res16.c +++ b/tools/winebuild/res16.c
@@ -217,7 +217,7 @@ /* 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 @@ { 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 @@ /* 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 ca90d71..7a713f8 100644 --- a/tools/winebuild/res32.c +++ b/tools/winebuild/res32.c
@@ -269,7 +269,7 @@ /* 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 @@ /* 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 @@ /* 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;