aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-04-05 19:15:18 +0930
committerAlan Modra <amodra@gmail.com>2023-04-06 09:51:38 +0930
commit6ff1cef1b40ccaa45bbbd765d81d750c2dc4f0ac (patch)
treea1fd0389057bfc7558ff0673e1e01c0d1a339fac /gas/write.c
parent41e6ffcecbcf62ae1f1aee52fad94b4f02b0706f (diff)
downloadfsf-binutils-gdb-6ff1cef1b40ccaa45bbbd765d81d750c2dc4f0ac.zip
fsf-binutils-gdb-6ff1cef1b40ccaa45bbbd765d81d750c2dc4f0ac.tar.gz
fsf-binutils-gdb-6ff1cef1b40ccaa45bbbd765d81d750c2dc4f0ac.tar.bz2
gas/write.c use better types
A tiny tidy. * write.c (frags_chained): Make it a bool. (n_fixups): Make it unsigned.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/write.c b/gas/write.c
index 8273b7a..4ce6f99 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -124,9 +124,9 @@ void print_fixup (fixS *);
chained these all together into a segment, any relocs we add after
that must be attached to a segment. This will include relocs added
in md_estimate_size_for_relax, for example. */
-static int frags_chained = 0;
+static bool frags_chained = false;
-static int n_fixups;
+static unsigned int n_fixups;
#define RELOC_ENUM enum bfd_reloc_code_real
@@ -416,7 +416,7 @@ chain_frchains_together (bfd *abfd ATTRIBUTE_UNUSED,
/* Now that we've chained the frags together, we must add new fixups
to the segment, not to the frag chain. */
- frags_chained = 1;
+ frags_chained = true;
}
static void