widl: Fix compilation warnings in 64-bit mode
Dmitry Timoshkov
dmitry at codeweavers.com
Mon May 21 01:55:43 CDT 2007
Hello,
Changelog:
widl: Fix compilation warnings in 64-bit mode.
---
tools/widl/proxy.c | 2 +-
tools/widl/typegen.c | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c
index 933792a..2b2ac97 100644
--- a/tools/widl/proxy.c
+++ b/tools/widl/proxy.c
@@ -193,7 +193,7 @@ static void proxy_check_pointers( const var_list_t *args )
static void free_variable( const var_t *arg )
{
- size_t type_offset = arg->type->typestring_offset;
+ unsigned type_offset = arg->type->typestring_offset;
var_t *constraint;
type_t *type;
expr_list_t *expr;
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 3d61615..d8ff454 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -685,7 +685,7 @@ static size_t type_memsize(const type_t *t, const array_dims_t *array, unsigned
return size;
}
-static size_t write_nonsimple_pointer(FILE *file, const type_t *type, size_t offset)
+static unsigned write_nonsimple_pointer(FILE *file, const type_t *type, size_t offset)
{
short absoff = type->ref->typestring_offset;
short reloff = absoff - (offset + 2);
@@ -698,7 +698,7 @@ static size_t write_nonsimple_pointer(FILE *file, const type_t *type, size_t off
return 4;
}
-static size_t write_simple_pointer(FILE *file, const type_t *type)
+static unsigned write_simple_pointer(FILE *file, const type_t *type)
{
print_file(file, 2, "0x%02x, 0x8,\t/* %s [simple_pointer] */\n",
type->type, string_of_type(type->type));
@@ -708,9 +708,9 @@ static size_t write_simple_pointer(FILE *file, const type_t *type)
return 4;
}
-static size_t write_pointer_tfs(FILE *file, type_t *type, size_t *typestring_offset)
+static size_t write_pointer_tfs(FILE *file, type_t *type, unsigned *typestring_offset)
{
- size_t offset = *typestring_offset;
+ unsigned offset = *typestring_offset;
print_file(file, 0, "/* %d */\n", offset);
type->typestring_offset = offset;
@@ -788,7 +788,7 @@ static int write_pointers(FILE *file, const attr_list_t *attrs,
static size_t write_pointer_description(FILE *file, const attr_list_t *attrs,
type_t *type, size_t mem_offset,
const array_dims_t *array, int level,
- size_t *typestring_offset)
+ unsigned *typestring_offset)
{
const var_t *v;
unsigned int align = 0;
@@ -1569,7 +1569,7 @@ static size_t process_tfs(FILE *file, const ifref_list_t *ifaces, int for_object
{
const var_t *var;
const ifref_t *iface;
- size_t typeformat_offset = 2;
+ unsigned typeformat_offset = 2;
if (ifaces) LIST_FOR_EACH_ENTRY( iface, ifaces, const ifref_t, entry )
{
--
1.5.1.6
More information about the wine-patches
mailing list