projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95476ea
)
* src/vmcore/linker.c (build_display_inner): Use MNEW instead of malloc.
author
Stefan Ring
<stefan@complang.tuwien.ac.at>
Mon, 20 Oct 2008 12:35:17 +0000
(14:35 +0200)
committer
Stefan Ring
<stefan@complang.tuwien.ac.at>
Mon, 20 Oct 2008 12:35:17 +0000
(14:35 +0200)
Fixes C++ build.
--HG--
branch : subtype
src/vmcore/linker.c
patch
|
blob
|
history
diff --git
a/src/vmcore/linker.c
b/src/vmcore/linker.c
index 08589bfdb82ab32525d5fc3e3ad524fb0d5f190e..221440966331bd00aa300cd89eb3cee286649ef1 100644
(file)
--- a/
src/vmcore/linker.c
+++ b/
src/vmcore/linker.c
@@
-577,7
+577,7
@@
static int build_display_inner(classinfo *topc, classinfo *c, int i)
{
if (depth == DISPLAY_SIZE)
{
- topc->vftbl->subtype_overflow =
malloc(sizeof(void*) * (i+1)
);
+ topc->vftbl->subtype_overflow =
MNEW(vftbl_t *, i+1
);
#if defined(ENABLE_STATISTICS)
if (opt_stat)
count_vftbl_len += sizeof(void*) * (i+1);