summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2015-01-06 09:54:20 +0000
committerNeil Fuller <nfuller@google.com>2015-01-06 09:54:20 +0000
commit139d9d8617b95e00c8628379ed7c405f7a316152 (patch)
treee80f8ebed2d02e40e13b3b0ce01c895c955b2fbe
parentd0f39dbb37a6c6d32b481067517daae95b360555 (diff)
downloadlibcore-139d9d8617b95e00c8628379ed7c405f7a316152.zip
libcore-139d9d8617b95e00c8628379ed7c405f7a316152.tar.gz
libcore-139d9d8617b95e00c8628379ed7c405f7a316152.tar.bz2
Avoid a type conversion during comparison
Tiny change after commit 2237a9d0ea59928f8852c9f599bdd9a6930e727d to compare a long with a long. Change-Id: Iaba2d7246295f3f23c760fe72195136208a95933
-rw-r--r--luni/src/main/java/libcore/util/ZoneInfo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/main/java/libcore/util/ZoneInfo.java b/luni/src/main/java/libcore/util/ZoneInfo.java
index c67593c..329320d 100644
--- a/luni/src/main/java/libcore/util/ZoneInfo.java
+++ b/luni/src/main/java/libcore/util/ZoneInfo.java
@@ -174,7 +174,7 @@ public final class ZoneInfo extends TimeZone {
// no future plans (and thus no future schedule info) will report "true" from
// useDaylightTime at the start of 2009 but "false" at the end. This seems appropriate.
boolean usesDst = false;
- int currentUnixTimeSeconds = (int) (System.currentTimeMillis() / 1000);
+ long currentUnixTimeSeconds = System.currentTimeMillis() / 1000;
int i = mTransitions.length - 1;
while (i >= 0 && mTransitions[i] >= currentUnixTimeSeconds) {
if (mIsDsts[mTypes[i]] > 0) {