pv 955274 - Fix random test failures due to u_char to char type mismatch comparison.
authorVlad Apostolov <vapo@sgi.com>
Mon, 2 Oct 2006 03:55:04 +0000 (03:55 +0000)
committerVlad Apostolov <vapo@sgi.com>
Mon, 2 Oct 2006 03:55:04 +0000 (03:55 +0000)
Merge of master-melb:xfs-cmds:27090a by kenmcd.

  pv 955274 - Fix random test failures due to u_char to char type mismatch comparison.

dmapi/src/suite2/src/test_invis.c

index 6f8657ed689a869e16ebdddd435f3f2e1298c55c..3d2f25e2d1d581af7c53aedcdec8e2c947872a22 100644 (file)
@@ -245,7 +245,7 @@ main(
              /* Be sure the buffer is filled with the test char */
              error_reported = 0;
              for (k=0; k<i; k++){
              /* Be sure the buffer is filled with the test char */
              error_reported = 0;
              for (k=0; k<i; k++){
-               if (((char *)bufp)[k] == ch) {
+               if (((u_char *)bufp)[k] == ch) {
                  if (Vflag) printf(".");
                }
                else {
                  if (Vflag) printf(".");
                }
                else {