ref: bfe05fd9c460908abc244064113fb310e1eeab46
parent: 5e49ea4d1f71d9134734011f2151cae4dbec5e5f
author: Rose <83477269+AtariDreams@users.noreply.github.com>
date: Thu May 4 10:15:09 EDT 2023
nodealloc should take a size_t rather than an int There is no reason to cast to int anyway.
--- a/parse.c
+++ b/parse.c
@@ -29,7 +29,7 @@
#include "awk.h"
#include "awkgram.tab.h"
-Node *nodealloc(int n)
+Node *nodealloc(size_t n)
{Node *x;
--- a/proto.h
+++ b/proto.h
@@ -68,7 +68,7 @@
extern int pgetc(void);
extern char *cursource(void);
-extern Node *nodealloc(int);
+extern Node *nodealloc(size_t);
extern Node *exptostat(Node *);
extern Node *node1(int, Node *);
extern Node *node2(int, Node *, Node *);
--
⑨