Bug 895931 - Follow up: avoid long overflow. r=trivial
authorRichard Newman <rnewman@mozilla.com>
Tue, 23 Jul 2013 12:25:56 -0700
changeset 139712 356034879b0bb87d07119bc7443dcde10f4d1a49
parent 139711 80bea130f275d70d7163f5d3b20471e0dd286f1d
child 139713 b02a7e62805086a40da88725bdef8ebc7bfe9ccd
push id31464
push userrnewman@mozilla.com
push dateWed, 24 Jul 2013 07:21:04 +0000
treeherdermozilla-inbound@356034879b0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial
bugs895931
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 895931 - Follow up: avoid long overflow. r=trivial
mobile/android/base/background/common/GlobalConstants.java.in
--- a/mobile/android/base/background/common/GlobalConstants.java.in
+++ b/mobile/android/base/background/common/GlobalConstants.java.in
@@ -17,18 +17,18 @@ public class GlobalConstants {
   // Otherwise, it means 'dev'.
   public static final String MOZ_UPDATE_CHANNEL = "@MOZ_UPDATE_CHANNEL@";
 #ifdef MOZ_OFFICIAL_BRANDING
   public static final boolean MOZ_OFFICIAL_BRANDING = true;
 #else
   public static final boolean MOZ_OFFICIAL_BRANDING = false;
 #endif
 
-  public static final long BUILD_TIMESTAMP_SECONDS = @MOZ_BUILD_TIMESTAMP@;
-  public static final long BUILD_TIMESTAMP_MSEC = 1000 * @MOZ_BUILD_TIMESTAMP@;
+  public static final long BUILD_TIMESTAMP_SECONDS = @MOZ_BUILD_TIMESTAMP@L;
+  public static final long BUILD_TIMESTAMP_MSEC = 1000L * @MOZ_BUILD_TIMESTAMP@L;
 
   public static final String MOZ_APP_DISPLAYNAME = "@MOZ_APP_DISPLAYNAME@";
   public static final String MOZ_APP_VERSION = "@MOZ_APP_VERSION@";
   public static final String BROWSER_INTENT_PACKAGE = "@ANDROID_PACKAGE_NAME@";
   public static final String BROWSER_INTENT_CLASS = BROWSER_INTENT_PACKAGE + ".App";
 
   /**
    * Bug 800244: this signing-level permission protects broadcast intents that