Index: trunk/psLib/src/astro/psTime.c
===================================================================
--- trunk/psLib/src/astro/psTime.c	(revision 2744)
+++ trunk/psLib/src/astro/psTime.c	(revision 2749)
@@ -10,6 +10,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-17 02:22:02 $
+ *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-12-17 20:47:08 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -758,7 +758,6 @@
     PS_PTR_CHECK_NULL(time2,0);
     PS_INT_CHECK_RANGE(time1->usec,0,1e6-1,0);
-    PS_INT_CHECK_RANGE(time1->usec,0,1e6-1,0);
-
-    diff = abs(psTimeGetTAIDelta((psTime*)time1)-psTimeGetTAIDelta((psTime*)time2));
+    PS_INT_CHECK_RANGE(time2->usec,0,1e6-1,0);
+    diff = abs((psS64)psTimeGetTAIDelta((psTime*)time1)-(psS64)psTimeGetTAIDelta((psTime*)time2));
 
     return diff;
