]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/impl/CalendarAstronomer.java
Upgrade ICU4J.
[Dictionary.git] / jars / icu4j-52_1 / main / classes / core / src / com / ibm / icu / impl / CalendarAstronomer.java
similarity index 99%
rename from jars/icu4j-4_8_1_1/main/classes/core/src/com/ibm/icu/impl/CalendarAstronomer.java
rename to jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/impl/CalendarAstronomer.java
index a6f3528db7b9d307efba9feebc335ccaf4fab9f7..be1c29f3808deb8bd3578604b18f0688babb1edd 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 1996-2010, International Business Machines Corporation and    *
+ * Copyright (C) 1996-2011, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -692,7 +692,7 @@ public class CalendarAstronomer {
         // Make a rough guess: 6am or 6pm local time on the current day
         long noon = ((time + fGmtOffset)/DAY_MS)*DAY_MS - fGmtOffset + 12*HOUR_MS;
         
-        setTime(noon + (long)((rise ? -6 : 6) * HOUR_MS));
+        setTime(noon + (rise ? -6L : 6L) * HOUR_MS);
         
         long t = riseOrSet(new CoordFunc() {
                             public Equatorial eval() { return getSunPosition(); }