X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Ffuncdesc.c;h=cccff02c2fe8ac4a3db9f4925cd896e89625ff0f;hb=98da4b581175232d89630f5c19f22e37a7588c7b;hp=041c8045ec37d08dc7d2bf9d89a63bbe0b3a1d02;hpb=9cc25f13b6aabc4fd299c54c9c38c5825689eb47;p=cc65 diff --git a/src/cc65/funcdesc.c b/src/cc65/funcdesc.c index 041c8045e..cccff02c2 100644 --- a/src/cc65/funcdesc.c +++ b/src/cc65/funcdesc.c @@ -33,7 +33,10 @@ -#include "mem.h" +/* common */ +#include "xmalloc.h" + +/* cc65 */ #include "funcdesc.h" @@ -48,7 +51,7 @@ FuncDesc* NewFuncDesc (void) /* Create a new symbol table with the given name */ { /* Create a new function descriptor */ - FuncDesc* F = xmalloc (sizeof (FuncDesc)); + FuncDesc* F = (FuncDesc*) xmalloc (sizeof (FuncDesc)); /* Nullify the fields */ F->Flags = 0;