From 5ce19cd92db8114b8cb08251e9195d00493aa9d2 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 30 Jul 2019 06:27:19 +0530 Subject: Ensure git commit time doesn't overflow Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/PasswordStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main') diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java index b32f2358..95eb5a9b 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java @@ -453,7 +453,7 @@ public class PasswordStore extends AppCompatActivity { return -1; } - return iterator.next().getCommitTime() * 1000; + return ((long) iterator.next().getCommitTime()) * 1000; } public void decryptPassword(PasswordItem item) { -- cgit v1.2.3