From: Justin Seyster Date: Thu, 26 Aug 2010 01:15:36 +0000 (-0400) Subject: Fixed wrong definitions for is_all_integer_type(), is_all_fp_type(). X-Git-Tag: release-v1.0~56 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=a2281913e52e6a65194ffb76d45404e9faed64fd;p=interaspect.git Fixed wrong definitions for is_all_integer_type(), is_all_fp_type(). --- diff --git a/src/aop-type.c b/src/aop-type.c index ed37200..f8eecf0 100644 --- a/src/aop-type.c +++ b/src/aop-type.c @@ -407,14 +407,15 @@ bool is_all_integer_type (const struct aop_type *type) { return ((type->kind == ATK_SIGNED_INT || type->kind == ATK_UNSIGNED_INT) - && type->size <= 0); + && type->pointer_levels == 0 && type->size <= 0); } /* Returns true if specified type is an "all fp" type. */ bool is_all_fp_type (const struct aop_type *type) { - return ((type->kind == ATK_FP) && type->size <= 0); + return ((type->kind == ATK_FP) && type->pointer_levels == 0 + && type->size <= 0); } static bool