- if ( s1[j].i != j + rank ) {
- errs++;
- printf( "Got s[%d].i = %d (%x); expected %d\n", j, s1[j].i,
- s1[j].i, j + rank );
- }
- if ( s1[j].c != 'a' + j + rank ) {
- errs++;
- /* If the character is not a printing character,
- this can generate an file that diff, for example,
- believes is a binary file */
- if (isprint( (int)(s1[j].c) )) {
- printf( "Got s[%d].c = %c; expected %c\n", j, s1[j].c,
- j + rank + 'a');
- }
- else {
- printf( "Got s[%d].c = %x; expected %c\n", j, (int)s1[j].c,
- j + rank + 'a');
- }
- }
- }
+ if (s1[j].i != j + rank) {
+ errs++;
+ printf("Got s[%d].i = %d (%x); expected %d\n", j, s1[j].i, s1[j].i, j + rank);
+ }
+ if (s1[j].c != 'a' + j + rank) {
+ errs++;
+ /* If the character is not a printing character,
+ * this can generate an file that diff, for example,
+ * believes is a binary file */
+ if (isprint((int) (s1[j].c))) {
+ printf("Got s[%d].c = %c; expected %c\n", j, s1[j].c, j + rank + 'a');
+ }
+ else {
+ printf("Got s[%d].c = %x; expected %c\n", j, (int) s1[j].c, j + rank + 'a');
+ }
+ }
+ }