ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to size_t to avoid warning.

* ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
	size_t to avoid warning.

From-SVN: r61705
This commit is contained in:
Andreas Schwab 2003-01-24 16:30:17 +00:00 committed by Andreas Schwab
parent 38df970eff
commit e12825cd48
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-01-24 Andreas Schwab <schwab@suse.de>
* ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
size_t to avoid warning.
2003-01-21 Zack Weinberg <zack@codesourcery.com>
* Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.

View File

@ -182,7 +182,7 @@ struct lang_type GTY(())
#define TYPE_DIGITS_VALUE(NODE) \
((long) TYPE_LANG_SPECIFIC (INTEGER_TYPE_CHECK (NODE)))
#define SET_TYPE_DIGITS_VALUE(NODE, X) \
(TYPE_LANG_SPECIFIC (INTEGER_TYPE_CHECK (NODE)) = (struct lang_type *)(X))
(TYPE_LANG_SPECIFIC (INTEGER_TYPE_CHECK (NODE)) = (struct lang_type *)(size_t)(X))
/* For INTEGER_TYPE, stores the RM_Size of the type. */
#define TYPE_RM_SIZE_INT(NODE) TYPE_VALUES (INTEGER_TYPE_CHECK (NODE))