diff --git a/src/kernel/xmlreader.c b/src/kernel/xmlreader.c index 6cef9d00c..51b7084cb 100644 --- a/src/kernel/xmlreader.c +++ b/src/kernel/xmlreader.c @@ -192,7 +192,7 @@ xml_readconstruction(xmlXPathContextPtr xpath, xmlNodeSetPtr nodeSet, assert(*consPtr == NULL); - *consPtr = con = calloc(sizeof(construction), 1); + *consPtr = con = (construction *)calloc(sizeof(construction), 1); consPtr = &con->improvement; con->skill = sk; @@ -349,7 +349,7 @@ static int parse_buildings(xmlDocPtr doc) maintenance *mt; if (btype->maintenance == NULL) { - btype->maintenance = + btype->maintenance = (struct maintenance *) calloc(sizeof(struct maintenance), result->nodesetval->nodeNr + 1); } mt = btype->maintenance + k;