ref: 5a48547528a4b9bbe31dfc3a99f6b39ff7d8c34e
parent: d13e447a6c73f7724f2f06b7d62a0ab63aaff59f
author: Ori Bernstein <[email protected]>
date: Sun Dec 21 18:41:27 EST 2014
Malloc the right types.
--- a/6/ra.c
+++ b/6/ra.c
@@ -445,9 +445,9 @@
free(s->rmoves);
free(s->nrmoves);
- s->aliasmap = zalloc(maxregid * sizeof(size_t));
+ s->aliasmap = zalloc(maxregid * sizeof(Loc*));
s->degree = zalloc(maxregid * sizeof(int));
- s->rmoves = zalloc(maxregid * sizeof(Loc **));
+ s->rmoves = zalloc(maxregid * sizeof(Insn**));
s->nrmoves = zalloc(maxregid * sizeof(size_t));
for (i = 0; bsiter(s->prepainted, &i); i++)