summaryrefslogtreecommitdiff
path: root/gcc/godump.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/godump.c')
-rw-r--r--gcc/godump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/godump.c b/gcc/godump.c
index 8ae38e5f124..9699559c151 100644
--- a/gcc/godump.c
+++ b/gcc/godump.c
@@ -984,7 +984,7 @@ go_output_typedef (struct godump_container *container, tree decl)
if (tree_fits_shwi_p (TREE_VALUE (element)))
snprintf (buf, sizeof buf, HOST_WIDE_INT_PRINT_DEC,
tree_low_cst (TREE_VALUE (element), 0));
- else if (host_integerp (TREE_VALUE (element), 1))
+ else if (tree_fits_uhwi_p (TREE_VALUE (element)))
snprintf (buf, sizeof buf, HOST_WIDE_INT_PRINT_UNSIGNED,
((unsigned HOST_WIDE_INT)
tree_low_cst (TREE_VALUE (element), 1)));