diff options
Diffstat (limited to 'field.c')
-rw-r--r-- | field.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3,7 +3,7 @@ */ /* - * Copyright (C) 1986, 1988, 1989, 1991-2022 the Free Software Foundation, Inc. + * Copyright (C) 1986, 1988, 1989, 1991-2023 the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the * AWK Programming Language. @@ -294,13 +294,13 @@ rebuild_record() * but better correct than fast. */ void -set_record(const char *buf, int cnt, const awk_fieldwidth_info_t *fw) +set_record(const char *buf, size_t cnt, const awk_fieldwidth_info_t *fw) { NODE *n; static char *databuf; - static unsigned long databuf_size; + static size_t databuf_size; #define INITIAL_SIZE 512 -#define MAX_SIZE ((unsigned long) ~0) /* maximally portable ... */ +#define MAX_SIZE ((size_t) ~0) /* maximally portable ... */ purge_record(); |