diff options
| author | Toby Goodwin <tgoodwin@cygnus.co.uk> | 1997-07-07 00:00:01 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:22:09 +0100 |
| commit | 671e1e2d1599aa8c5f1010b3fe75c151c56a7403 (patch) | |
| tree | 906ba5d55d6993f59d7bb1def63d494bafd38728 /tree.c | |
| parent | a076248389c82276e079756bee26c011b03f70f2 (diff) | |
beta: rc-1.5b2
Diffstat (limited to 'tree.c')
| -rw-r--r-- | tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -65,7 +65,7 @@ extern Node *mk(int /*nodetype*/ t,...) { /* copy a tree to malloc space. Used when storing the definition of a function */ -extern Node *treecpy(Node *s, void *(*alloc)(SIZE_T)) { +extern Node *treecpy(Node *s, void *(*alloc)(size_t)) { Node *n; if (s == NULL) return NULL; @@ -83,7 +83,7 @@ extern Node *treecpy(Node *s, void *(*alloc)(SIZE_T)) { n = (*alloc)(offsetof(Node, u[2])); n->u[0].s = strcpy((char *) (*alloc)(strlen(s->u[0].s) + 1), s->u[0].s); if (s->u[1].s != NULL) { - SIZE_T i = strlen(s->u[0].s); + size_t i = strlen(s->u[0].s); n->u[1].s = (*alloc)(i); memcpy(n->u[1].s, s->u[1].s, i); } else |