diff options
author | Jim Meyering <jim@meyering.net> | 2000-11-30 20:30:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-11-30 20:30:04 +0000 |
commit | 339738f351376daf6f98c40c9b4f1a223808648b (patch) | |
tree | b31997aa7ce9e44d3229fd8a94f41ee56752e0cc | |
parent | a48a4d5c63a95d3a7060ec8db129c9a25c7dffca (diff) | |
download | coreutils-339738f351376daf6f98c40c9b4f1a223808648b.tar.xz |
s/SIZE_T_MAX/SIZE_MAX/.
-rw-r--r-- | src/sort.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sort.c b/src/sort.c index 6b7d35838..b94c2ecd1 100644 --- a/src/sort.c +++ b/src/sort.c @@ -630,7 +630,7 @@ static void initlines (struct lines *lines, size_t alloc, size_t limit) { lines->alloc = alloc; - if (SIZE_T_MAX / sizeof (struct line) < alloc) + if (SIZE_MAX / sizeof (struct line) < alloc) xalloc_die (); lines->lines = (struct line *) xmalloc (lines->alloc * sizeof (struct line)); lines->used = 0; @@ -805,7 +805,7 @@ findlines (struct buffer *buf, struct lines *lines) if (lines->used == lines->alloc) { lines->alloc *= 2; - if (SIZE_T_MAX / sizeof (struct line) < lines->alloc) + if (SIZE_MAX / sizeof (struct line) < lines->alloc) xalloc_die (); lines->lines = (struct line *) xrealloc ((char *) lines->lines, @@ -1747,7 +1747,7 @@ sort (char **files, int nfiles, FILE *ofp, const char *output_file) else while ((ntmp *= 2) < lines.used) continue; - if (SIZE_T_MAX / sizeof (struct line) < ntmp) + if (SIZE_MAX / sizeof (struct line) < ntmp) xalloc_die (); tmp = (struct line *) xrealloc ((char *) tmp, ntmp * sizeof (struct line)); |