Browse Source

* gdbtypes.h (TYPE_ALLOC): Parenthesize result to avoid problems

for callers.
gdb-4_18-branch
John Gilmore 34 years ago
parent
commit
92a87f6afd
  1. 4
      gdb/gdbtypes.h

4
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 *));

Loading…
Cancel
Save