winebuild: sign-compare fixes.

This commit is contained in:
Joris Huizer 2007-03-03 05:30:03 -08:00 committed by Alexandre Julliard
parent 2cdced8193
commit c9f1452233
3 changed files with 11 additions and 8 deletions

View File

@ -168,7 +168,7 @@ static void free_imports( struct import *imp )
/* check whether a given dll is imported in delayed mode */ /* check whether a given dll is imported in delayed mode */
static int is_delayed_import( const char *name ) static int is_delayed_import( const char *name )
{ {
int i; unsigned int i;
for (i = 0; i < delayed_imports.count; i++) for (i = 0; i < delayed_imports.count; i++)
{ {
@ -468,7 +468,8 @@ static void check_undefined_exports( DLLSPEC *spec )
static char *create_undef_symbols_file( DLLSPEC *spec ) static char *create_undef_symbols_file( DLLSPEC *spec )
{ {
char *as_file, *obj_file; char *as_file, *obj_file;
unsigned int i; int i;
unsigned int j;
FILE *f; FILE *f;
as_file = get_temp_file_name( output_file_name, ".s" ); as_file = get_temp_file_name( output_file_name, ".s" );
@ -482,8 +483,8 @@ static char *create_undef_symbols_file( DLLSPEC *spec )
if (odp->flags & FLAG_FORWARD) continue; if (odp->flags & FLAG_FORWARD) continue;
fprintf( f, "\t%s %s\n", get_asm_ptr_keyword(), asm_name(odp->link_name) ); fprintf( f, "\t%s %s\n", get_asm_ptr_keyword(), asm_name(odp->link_name) );
} }
for (i = 0; i < extra_ld_symbols.count; i++) for (j = 0; j < extra_ld_symbols.count; j++)
fprintf( f, "\t%s %s\n", get_asm_ptr_keyword(), asm_name(extra_ld_symbols.names[i]) ); fprintf( f, "\t%s %s\n", get_asm_ptr_keyword(), asm_name(extra_ld_symbols.names[j]) );
fclose( f ); fclose( f );
obj_file = get_temp_file_name( output_file_name, ".o" ); obj_file = get_temp_file_name( output_file_name, ".o" );
@ -557,7 +558,8 @@ void read_undef_symbols( DLLSPEC *spec, char **argv )
/* resolve the imports for a Win32 module */ /* resolve the imports for a Win32 module */
int resolve_imports( DLLSPEC *spec ) int resolve_imports( DLLSPEC *spec )
{ {
unsigned int i, j, removed; int i;
unsigned int j, removed;
ORDDEF *odp; ORDDEF *odp;
sort_names( &ignore_symbols ); sort_names( &ignore_symbols );

View File

@ -51,7 +51,7 @@ static inline int needs_relay( const ORDDEF *odp )
/* check if dll will output relay thunks */ /* check if dll will output relay thunks */
int has_relays( DLLSPEC *spec ) int has_relays( DLLSPEC *spec )
{ {
unsigned int i; int i;
if (target_cpu != CPU_x86) return 0; if (target_cpu != CPU_x86) return 0;
@ -70,7 +70,8 @@ int has_relays( DLLSPEC *spec )
*/ */
static void output_relay_debug( DLLSPEC *spec ) static void output_relay_debug( DLLSPEC *spec )
{ {
unsigned int i, j, args, flags; int i;
unsigned int j, args, flags;
/* first the table of entry point offsets */ /* first the table of entry point offsets */

View File

@ -454,7 +454,7 @@ unsigned int get_alignment(unsigned int align)
case CPU_POWERPC: case CPU_POWERPC:
case CPU_ALPHA: case CPU_ALPHA:
n = 0; n = 0;
while ((1 << n) != align) n++; while ((1u << n) != align) n++;
return n; return n;
} }
/* unreached */ /* unreached */