From 2c59a95122eb4f0841987f33dd915d3a120d6d01 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 21 May 2007 15:56:07 +0900 Subject: [PATCH] winebuild: Fix compilation warnings in 64-bit mode. --- tools/winebuild/res16.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/winebuild/res16.c b/tools/winebuild/res16.c index 35ac597600b..8648190ed24 100644 --- a/tools/winebuild/res16.c +++ b/tools/winebuild/res16.c @@ -293,10 +293,11 @@ void output_res16_directory( DLLSPEC *spec, const char *header_name ) for (j = 0, res = type->res; j < type->nb_names; j++, res++) { - output( "\t%s .L__wine_spec_resource_%u-%s\n", - get_asm_short_keyword(), res - spec->resources, header_name ); - output( "\t%s .L__wine_spec_resource_%u_end-.L__wine_spec_resource_%u\n", - get_asm_short_keyword(), res - spec->resources, res - spec->resources ); + output( "\t%s .L__wine_spec_resource_%lu-%s\n", + get_asm_short_keyword(), (unsigned long)(res - spec->resources), header_name ); + output( "\t%s .L__wine_spec_resource_%lu_end-.L__wine_spec_resource_%lu\n", + get_asm_short_keyword(), (unsigned long)(res - spec->resources), + (unsigned long)(res - spec->resources) ); output( "\t%s 0x%04x\n", get_asm_short_keyword(), res->memopt ); if (res->name.str) output( "\t%s .L__wine_spec_resname_%u_%u-.L__wine_spec_ne_rsrctab\n",