From 6e8d25ee0d560f7fbdc1afa8fefc24f8f8b7606b Mon Sep 17 00:00:00 2001 From: Eldar Insafutdinov Date: Sun, 31 Oct 2010 23:17:56 +0000 Subject: [PATCH] fix stupid bug with sizes of compiler classes --- dmd2/mtype.c | 2 +- dmd2/mtype.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmd2/mtype.c b/dmd2/mtype.c index 7c9abf6b..685477f9 100644 --- a/dmd2/mtype.c +++ b/dmd2/mtype.c @@ -126,7 +126,7 @@ Type *Type::tvoidptr; Type *Type::tstring; Type *Type::basic[TMAX]; unsigned char Type::mangleChar[TMAX]; -unsigned char Type::sizeTy[TMAX]; +unsigned short Type::sizeTy[TMAX]; StringTable Type::stringtable; #if IN_LLVM diff --git a/dmd2/mtype.h b/dmd2/mtype.h index d7a380c5..bb2e0e19 100644 --- a/dmd2/mtype.h +++ b/dmd2/mtype.h @@ -216,7 +216,7 @@ struct Type : Object static Type *basic[TMAX]; static unsigned char mangleChar[TMAX]; - static unsigned char sizeTy[TMAX]; + static unsigned short sizeTy[TMAX]; static StringTable stringtable; #if IN_LLVM static StringTable deco_stringtable;