Changeset 2089 for trunk/src/libctests/glibc/stdio-common/tstscanf.c
- Timestamp:
- Jun 27, 2005, 5:05:29 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/stdio-common/tstscanf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2088 r2089 339 339 340 340 res = sscanf ("-InF", "%f", &value); 341 if (res != 1 || isinf (value) != -1)341 if (res != 1 || isinf (value) == 0/*!= -1*/) /* (the standard doesn't define -1 and 1, only non-zero. bsd doesn't do this.) */ 342 342 { 343 343 fputs ("test failed!\n", stdout); … … 346 346 347 347 res = sscanf ("+InfiNiTY", "%f", &value); 348 if (res != 1 || isinf (value) != 1)348 if (res != 1 || isinf (value) == 0/* != 1*/) 349 349 { 350 350 fputs ("test failed!\n", stdout); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.