diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tsort.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tsort.c b/src/tsort.c index efcea11cc..3ef6cb080 100644 --- a/src/tsort.c +++ b/src/tsort.c @@ -470,11 +470,9 @@ tsort (const char *file) while (1) { - long int len; - /* T2. Next Relation. */ - len = readtoken (fp, DELIM, sizeof (DELIM) - 1, &tokenbuffer); - if (len < 0) + size_t len = readtoken (fp, DELIM, sizeof (DELIM) - 1, &tokenbuffer); + if (len == (size_t) -1) break; assert (len != 0); |