ref: ae0b1ca613d44f31b5ec17cd58148ac13fdb7f0f
parent: 7ab08eebe99f9f9da5d316a401bcef27e0e5f180
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++)