diff options
author | David Schultz <das@FreeBSD.org> | 2011-03-09 06:14:33 +0000 |
---|---|---|
committer | David Schultz <das@FreeBSD.org> | 2011-03-09 06:14:33 +0000 |
commit | 21a2b1c905e6a3ae73e3ca075627e81a2ccac58f (patch) | |
tree | 80228e2b243573cbd695c52e7a912cc1643cd1b2 /test/xtest.c | |
parent | 9ea4d2a87415d5928272c15f22583103f2ccfe30 (diff) |
Notes
Diffstat (limited to 'test/xtest.c')
-rw-r--r-- | test/xtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/xtest.c b/test/xtest.c index 86d7fba01ce79..f5275f0b42ec1 100644 --- a/test/xtest.c +++ b/test/xtest.c @@ -85,7 +85,7 @@ main(Void) int i, dItry, ndig = 0, r = 1; union { long double d; UShort bits[5]; } u, v[2]; - while(s = fgets(ibuf, sizeof(ibuf), stdin)) { + while((s = fgets(ibuf, sizeof(ibuf), stdin))) { while(*s <= ' ') if (!*s++) continue; @@ -96,7 +96,7 @@ main(Void) continue; case 'n': i = s[1]; - if (i <= ' ' || i >= '0' && i <= '9') { + if (i <= ' ' || (i >= '0' && i <= '9')) { ndig = atoi(s+1); continue; } |