diff options
author | John Gilmore <gnu@cygnus> | 1992-08-29 00:31:10 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-08-29 00:31:10 +0000 |
commit | 92a87f6afd8a3d02873ad5a01cd9b810aee4742a (patch) | |
tree | 9f1ac1e91214fa5ae65e219e852e424751235c89 /gdb | |
parent | ecf4059f1cdbfdf685d5c02348090dc72c56c20e (diff) | |
download | gdb-92a87f6afd8a3d02873ad5a01cd9b810aee4742a.zip gdb-92a87f6afd8a3d02873ad5a01cd9b810aee4742a.tar.gz gdb-92a87f6afd8a3d02873ad5a01cd9b810aee4742a.tar.bz2 |
* gdbtypes.h (TYPE_ALLOC): Parenthesize result to avoid problems
for callers.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbtypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 5aaf73b..8fae607 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 *)); |