summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-30 20:30:04 +0000
committerJim Meyering <jim@meyering.net>2000-11-30 20:30:04 +0000
commit339738f351376daf6f98c40c9b4f1a223808648b (patch)
treeb31997aa7ce9e44d3229fd8a94f41ee56752e0cc /src/sort.c
parenta48a4d5c63a95d3a7060ec8db129c9a25c7dffca (diff)
downloadcoreutils-339738f351376daf6f98c40c9b4f1a223808648b.tar.xz
s/SIZE_T_MAX/SIZE_MAX/.
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c6
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));