From a2281913e52e6a65194ffb76d45404e9faed64fd Mon Sep 17 00:00:00 2001 From: Justin Seyster Date: Wed, 25 Aug 2010 21:15:36 -0400 Subject: [PATCH] Fixed wrong definitions for is_all_integer_type(), is_all_fp_type(). --- src/aop-type.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.43.0