* [binutils-gdb] gas/write.c use better types
@ 2023-04-06 0:26 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-04-06 0:26 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6ff1cef1b40ccaa45bbbd765d81d750c2dc4f0ac
commit 6ff1cef1b40ccaa45bbbd765d81d750c2dc4f0ac
Author: Alan Modra <amodra@gmail.com>
Date: Wed Apr 5 19:15:18 2023 +0930
gas/write.c use better types
A tiny tidy.
* write.c (frags_chained): Make it a bool.
(n_fixups): Make it unsigned.
Diff:
---
gas/write.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gas/write.c b/gas/write.c
index 8273b7a42f1..4ce6f997caa 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-06 0:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06 0:26 [binutils-gdb] gas/write.c use better types Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).