Index: /trunk/psLib/src/image/psImageManip.c
===================================================================
--- /trunk/psLib/src/image/psImageManip.c	(revision 1500)
+++ /trunk/psLib/src/image/psImageManip.c	(revision 1501)
@@ -11,6 +11,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-08-09 23:34:58 $
+ *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-08-12 02:46:28 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -689,6 +689,6 @@
         float centerY = (float)(numRows) / 2.0f;
         float t = angle * (3.14159265358f / 180.0f);
-        float cosT = cosf(t);
-        float sinT = sinf(t);
+        double cosT = cosf(t);
+        double sinT = sinf(t);
 
         // calculate the corners of the rotated
@@ -702,6 +702,6 @@
         // (x-centerX)*sinT;
 
-        int outCols = ceil(abs(numCols * cosT) + abs(numRows * sinT)) + 1;
-        int outRows = ceil(abs(numCols * sinT) + abs(numRows * cosT)) + 1;
+        int outCols = (int)(abs(numCols * cosT) + abs(numRows * sinT)) + 1;
+        int outRows = (int)(abs(numCols * sinT) + abs(numRows * cosT)) + 1;
         float minX = (float)outCols / -2.0f;
         int intMinY = outRows / -2;
