From: yangxx Date: Fri, 1 Aug 2003 19:54:05 +0000 (+0000) Subject: git-svn-id: http://ltt.polymtl.ca/svn@157 04897980-b3bd-0310-b5e0-8ef037075253 X-Git-Tag: v0.12.20~3332 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=62c72abfe4ed5176c2dc5f10ccd354bf8a560d4d;p=lttv.git git-svn-id: ltt.polymtl.ca/svn@157 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/type.c b/ltt/branches/poly/ltt/type.c index c7fdebba..b34627c1 100644 --- a/ltt/branches/poly/ltt/type.c +++ b/ltt/branches/poly/ltt/type.c @@ -164,12 +164,18 @@ unsigned ltt_type_size(LttTrace * trace, LttType *t) return intSizes[t->size]; else{ LttArchSize size = trace->system_description->size; - if(size == LTT_LP32) - return sizeof(int16_t); - else if(size == LTT_ILP32 || size == LTT_LP64) - return sizeof(int32_t); - else if(size == LTT_ILP64) - return sizeof(int64_t); + if(size == LTT_LP32){ + if(t->size == 5)return sizeof(int16_t); + else return sizeof(int32_t); + } + else if(size == LTT_ILP32 || size == LTT_LP64){ + if(t->size == 5)return sizeof(int32_t); + else{ + if(size == LTT_ILP32) return sizeof(int32_t); + else return sizeof(int64_t); + } + } + else if(size == LTT_ILP64)return sizeof(int64_t); } } }