From 92a87f6afd8a3d02873ad5a01cd9b810aee4742a Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sat, 29 Aug 1992 00:31:10 +0000 Subject: [PATCH] * gdbtypes.h (TYPE_ALLOC): Parenthesize result to avoid problems for callers. --- gdb/gdbtypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 5aaf73ba69d..8fae607b175 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -517,9 +517,9 @@ extern struct type *builtin_type_m2_bool; the same as for the type structure. */ #define TYPE_ALLOC(t,size) \ - TYPE_OBJFILE (t) != NULL \ + (TYPE_OBJFILE (t) != NULL \ ? obstack_alloc (&TYPE_OBJFILE (t) -> type_obstack, size) \ - : xmalloc (size) + : xmalloc (size)) extern struct type * alloc_type PARAMS ((struct objfile *)); -- 2.30.2