[PATCH 03/10] widl: Implement a more abstract way of representing basic types.
Alexandre Julliard
julliard at winehq.org
Thu Mar 5 09:12:02 CST 2009
Rob Shearman <robertshearman at gmail.com> writes:
> Thanks for the info. Does the attached patch fix it?
Not quite (static variables are zero anyway), but this does:
diff --git a/tools/widl/typetree.c b/tools/widl/typetree.c
index 57a5736..74cbd5f 100644
--- a/tools/widl/typetree.c
+++ b/tools/widl/typetree.c
@@ -102,7 +102,7 @@ type_t *type_new_basic(enum type_basic_type basic_type)
type_t *type_new_int(enum type_basic_type basic_type, int sign)
{
- static type_t *int_types[TYPE_BASIC_INT_MAX][3];
+ static type_t *int_types[TYPE_BASIC_INT_MAX+1][3];
assert(basic_type <= TYPE_BASIC_INT_MAX);
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list