From 370c704962bb99ca99653df546bcb377b4366db7 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 11 Apr 2005 00:08:08 +0000 Subject: [PATCH] * symbols.c (symbol_X_add_number): Change return type to "offsetT *". * symbols.h (symbol_X_add_number): Update prototype. --- gas/ChangeLog | 5 +++++ gas/symbols.c | 6 +++--- gas/symbols.h | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index c59edd61b..f6c8d4e45 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2005-04-11 Alan Modra + + * symbols.c (symbol_X_add_number): Change return type to "offsetT *". + * symbols.h (symbol_X_add_number): Update prototype. + 2005-04-10 Eric Christopher * symbols.c (symbol_X_add_number): Fix warning. diff --git a/gas/symbols.c b/gas/symbols.c index c8773f1e5..002ae359a 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -2024,15 +2024,15 @@ symbol_set_value_expression (symbolS *s, const expressionS *exp) /* Return a pointer to the X_add_number component of a symbol. */ -valueT * +offsetT * symbol_X_add_number (symbolS *s) { #ifdef BFD_ASSEMBLER if (LOCAL_SYMBOL_CHECK (s)) - return &((struct local_symbol *) s)->lsy_value; + return (offsetT *) &((struct local_symbol *) s)->lsy_value; #endif - return (valueT *)&s->sy_value.X_add_number; + return &s->sy_value.X_add_number; } /* Set the value of SYM to the current position in the current segment. */ diff --git a/gas/symbols.h b/gas/symbols.h index eb5a85254..89bbdb130 100644 --- a/gas/symbols.h +++ b/gas/symbols.h @@ -175,7 +175,7 @@ extern symbolS *symbol_next (symbolS *); extern expressionS *symbol_get_value_expression (symbolS *); extern void symbol_set_value_expression (symbolS *, const expressionS *); -extern valueT *symbol_X_add_number (symbolS *); +extern offsetT *symbol_X_add_number (symbolS *); extern void symbol_set_value_now (symbolS *); extern void symbol_set_frag (symbolS *, fragS *); extern fragS *symbol_get_frag (symbolS *); -- 2.11.4.GIT