Fixed wrong definitions for is_all_integer_type(), is_all_fp_type().
authorJustin Seyster <jseyster@cs.sunysb.edu>
Thu, 26 Aug 2010 01:15:36 +0000 (21:15 -0400)
committerJustin Seyster <jseyster@cs.sunysb.edu>
Thu, 26 Aug 2010 01:15:36 +0000 (21:15 -0400)
src/aop-type.c

index ed37200e6b4c25f8dd27a6431f8eff34993d65c2..f8eecf0084a64e888110daa2864513a976285771 100644 (file)
@@ -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