Index: /trunk/Ohana/src/libfits/test/zlib.c
===================================================================
--- /trunk/Ohana/src/libfits/test/zlib.c	(revision 38441)
+++ /trunk/Ohana/src/libfits/test/zlib.c	(revision 38442)
@@ -18,5 +18,5 @@
 int main (int argc, char **argv) {
   
-  plan_tests (7);
+  plan_tests (14);
 
   diag ("libfits zlib.c tests");
@@ -74,7 +74,8 @@
     ok (zdn.total_out <= NTGT*sizeof(double), "output compressed size is good");
 
+    char *tgtdata = (char *) tgtbuf;
     if (VERBOSE) fprintf (stderr, "result: %d bytes\n", (int) zdn.total_out);
-    for (i = 0; VERBOSE && (i < zdn.total_out / sizeof(double)); i++) {
-      fprintf (stderr, "%d : 0x%02hhx\n", i, tgtbuf[i]);
+    for (i = 0; VERBOSE && i < zdn.total_out; i++) {
+      fprintf (stderr, "%d : 0x%02hhx\n", i, tgtdata[i]);
     }
   }
@@ -164,7 +165,8 @@
     ok (zdn.total_out <= NTGT*sizeof(double), "output compressed size is good");
 
+    char *tgtdata = (char *) tgtbuf;
     if (VERBOSE) fprintf (stderr, "result: %d bytes\n", (int) zdn.total_out);
-    for (i = 0; VERBOSE && (i < zdn.total_out / sizeof(double)); i++) {
-      fprintf (stderr, "%d : 0x%02hhx\n", i, tgtbuf[i]);
+    for (i = 0; VERBOSE && (i < zdn.total_out); i++) {
+      fprintf (stderr, "%d : 0x%02hhx\n", i, tgtdata[i]);
     }
   }
