diff options
Diffstat (limited to 'gas/macro.c')
-rw-r--r-- | gas/macro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/macro.c b/gas/macro.c index cddf26a..615bfda 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -471,7 +471,7 @@ new_formal (void) { formal_entry *formal; - formal = (formal_entry *) xmalloc (sizeof (formal_entry)); + formal = XNEW (formal_entry); sb_new (&formal->name); sb_new (&formal->def); @@ -655,7 +655,7 @@ define_macro (size_t idx, sb *in, sb *label, sb name; const char *error = NULL; - macro = (macro_entry *) xmalloc (sizeof (macro_entry)); + macro = XNEW (macro_entry); sb_new (¯o->sub); sb_new (&name); macro->file = file; |