Index: trunk/psLib/src/astro/psEarthOrientation.c
===================================================================
--- trunk/psLib/src/astro/psEarthOrientation.c	(revision 6030)
+++ trunk/psLib/src/astro/psEarthOrientation.c	(revision 6036)
@@ -8,6 +8,6 @@
  *  @author Robert Daniel DeSonia, MHPCC
  *
- *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-01-18 00:41:29 $
+ *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-01-18 20:59:31 $
  *
  *  Copyright 2005 Maui High Performance Computing Center, University of Hawaii
@@ -846,7 +846,7 @@
     if (tidalCorr != NULL && tidalCorr->s != 0.0) {
         int nsec = in->nsec + (int)(tidalCorr->s * 1e9);
-        if (nsec < 0.0) {
+        if (nsec < 0) {
             in->sec += -1;
-            in->nsec = (int)(1e9) - nsec;
+            in->nsec = (int)(1e9) + nsec;
         } else {
             in->nsec = nsec;
@@ -1009,6 +1009,4 @@
 
     // Calculate number of Julian centuries since 2000
-    //XXX: NOT SURE IF THIS IS CORRECT FOR THIS SITUATION
-    //    double RJD = ( MJD - MJD_2000 ) / JULIAN_CENTURY;
     double RJD = MJD;
 
