summaryrefslogtreecommitdiff
path: root/compiler_and_linker/unsorted/Alias.c
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-14 13:20:48 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-14 13:20:48 +0000
commit5f3c8265f2717f72d68d8eb170fbe2dd114d7b76 (patch)
tree9c35e496749b61b40c2c18626eb45bde75d74d06 /compiler_and_linker/unsorted/Alias.c
parent00edfdb0d430d8bf1d2fc98cb226114ef271d993 (diff)
downloadMWCC-5f3c8265f2717f72d68d8eb170fbe2dd114d7b76.tar.gz
MWCC-5f3c8265f2717f72d68d8eb170fbe2dd114d7b76.zip
fix lots more bugs, add better logging
Diffstat (limited to 'compiler_and_linker/unsorted/Alias.c')
-rw-r--r--compiler_and_linker/unsorted/Alias.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler_and_linker/unsorted/Alias.c b/compiler_and_linker/unsorted/Alias.c
index d8d883d..b86fb41 100644
--- a/compiler_and_linker/unsorted/Alias.c
+++ b/compiler_and_linker/unsorted/Alias.c
@@ -486,7 +486,7 @@ static Propagation alias_prop = {
&finishpropagatealiases,
"ALIAS",
"ALIASES",
- "A%ld",
+ "A%" PRId32,
1
};
@@ -616,7 +616,7 @@ void gather_alias_info(void) {
if (n_gathered_aliases != n_aliases) {
for (alias = aliases; alias; alias = alias->next) {
if (alias->type == AliasType2) {
- alias->vec24 = lalloc(4 * ((n_aliases + 31) >> 35));
+ alias->vec24 = lalloc(4 * ((n_aliases + 31) >> 5));
bitvectorinitialize(alias->vec24, n_aliases, 0);
for (member = alias->parents; member; member = member->nextParent) {
bitvectorsetbit(member->child->index, alias->vec24);