Index: trunk/Mars/mcore/fits.h
===================================================================
--- trunk/Mars/mcore/fits.h	(revision 16285)
+++ trunk/Mars/mcore/fits.h	(revision 16287)
@@ -573,4 +573,5 @@
         const size_t rowWidth = currentTable.Get<size_t>("NAXIS1");
         const size_t numRows  = currentTable.Get<size_t>("NAXIS2");
+        const off_t  numTableBytes = rowWidth*numRows;
 
         //get offset of special data area from start of main table
@@ -584,5 +585,5 @@
         paddingSize += (paddingSize==0) ? 0 : 2880 - paddingSize;
 
-        const off_t whereDoIGo = tellg() + (off_t)(rowWidth*numRows) + heapSize + heapShift + paddingSize;
+        const off_t whereDoIGo = tellg() + numTableBytes + heapSize + heapShift + paddingSize;
         seekg(whereDoIGo);
 
