Minor corrections after looking at the diff.

This commit is contained in:
Kugel Fuhr
2025-06-22 12:15:33 +02:00
parent b9a703749c
commit 7d231d60a6
2 changed files with 2 additions and 4 deletions

View File

@@ -125,10 +125,8 @@ static const char* GetAddrArg (unsigned Flags, uint32_t Addr)
static char Buf [32];
if (Addr < 0x100) {
xsprintf (Buf, sizeof (Buf), "$%02" PRIX32, Addr);
} else if (Addr < 0x10000) {
xsprintf (Buf, sizeof (Buf), "$%04" PRIX32, Addr);
} else {
xsprintf (Buf, sizeof (Buf), "$%06" PRIX32, Addr);
xsprintf (Buf, sizeof (Buf), "$%04" PRIX32, Addr);
}
return Buf;
}

View File

@@ -507,7 +507,7 @@ void DefOutOfRangeLabels (void)
** sorted by address for better readability. This is not directly
** possible when using a hash table, so an intermediate data structure
** is required. It is not possible to collect out-of-range labels while
** generating them, since they may come from an info file and where added
** generating them, since they may come from an info file and are added
** while no input file was read. Which means it cannot be determined at
** that point if they're out-of-range or not.
*/