diff options
author | Yi Kong <yikong@google.com> | 2023-12-12 04:54:18 +0000 |
---|---|---|
committer | Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | 2023-12-12 04:54:18 +0000 |
commit | e4127a7e5bb05096c138ae44a035f2bf52fecc2b (patch) | |
tree | 39c8d20886a76130742bb4fdc69749874a21d39e | |
parent | 59cb317354c642bcfe3c32772df2f00548297c70 (diff) | |
download | pixel-e4127a7e5bb05096c138ae44a035f2bf52fecc2b.tar.gz |
Fix -Winteger-overflow
error: overflow in expression; result is 1471228928 with type 'int' [-Werror,-Winteger-overflow]
Test: presubmit
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:da3e002d9b7805cb7a6d43627c35a9c5fef9a2de)
Merged-In: I58ba8f63789e84e7077f8dda58a2d21242175e4b
Change-Id: I58ba8f63789e84e7077f8dda58a2d21242175e4b
-rw-r--r-- | power-libperfmgr/libperfmgr/tests/RequestGroupTest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/power-libperfmgr/libperfmgr/tests/RequestGroupTest.cc b/power-libperfmgr/libperfmgr/tests/RequestGroupTest.cc index 8021a7e8..c23c8211 100644 --- a/power-libperfmgr/libperfmgr/tests/RequestGroupTest.cc +++ b/power-libperfmgr/libperfmgr/tests/RequestGroupTest.cc @@ -63,7 +63,7 @@ TEST(RequestGroupTest, AddRequestNoExpireTest) { ReqTime::max() - std::chrono::steady_clock::now()); EXPECT_NEAR(expect.count(), expire_time.count(), kTIMING_TOLERANCE_MS); // expire time is greater than 1 year - EXPECT_LE(365 * 24 * 60 * 60 * 1000, expire_time.count()); + EXPECT_LE(365ll * 24 * 60 * 60 * 1000, expire_time.count()); EXPECT_EQ(true, active); } |