Jean Wolter writes:

Hello,

when calling seq with

    seq 1 1

it generates an "endless" list of numbers until the counter wraps and
reaches 1 again. The follwoing small patch should introduce the
expected behavior (output of 1 and termination):

regards,
Jean
This commit is contained in:
Eric Andersen 2004-02-04 11:01:19 +00:00
parent c06f568dda
commit c71c18957d

View File

@ -36,7 +36,7 @@ extern int seq_main(int argc, char **argv)
}
last = atof(argv[argc - 1]);
for (i = first; ((first < last) ? (i <= last): (i >= last));i += increment) {
for (i = first; ((first <= last) ? (i <= last): (i >= last));i += increment) {
printf("%g\n", i);
}