fe2d612
diff -Naur cfitsio/imcompress.c cfitsio.new/imcompress.c
fe2d612
--- cfitsio/imcompress.c	2013-11-22 21:37:42.000000000 +0100
fe2d612
+++ cfitsio.new/imcompress.c	2017-10-02 14:59:15.109929047 +0200
fe2d612
@@ -6315,7 +6315,7 @@
fe2d612
 	    */
fe2d612
 	       
fe2d612
             if ((infptr->Fptr)->compress_type == HCOMPRESS_1) {
fe2d612
-	        if (*status == NUM_OVERFLOW) *status = 0;
fe2d612
+	        if ((*status == NUM_OVERFLOW) || (*status == OVERFLOW_ERR)) *status = 0;
fe2d612
 	    }
fe2d612
           }
fe2d612
         else if (tiledatatype == TSHORT)