summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2023-12-11 14:14:50 +0900
committerYi Kong <yikong@google.com>2023-12-11 14:14:50 +0900
commitda3e002d9b7805cb7a6d43627c35a9c5fef9a2de (patch)
tree63b22d55b75a60d1e7a5a22f7b390ea8e1f5ef20
parent4407a6aa83116e70f4d66e6f49a9f23a68312774 (diff)
downloadpixel-da3e002d9b7805cb7a6d43627c35a9c5fef9a2de.tar.gz
Fix -Winteger-overflow
error: overflow in expression; result is 1471228928 with type 'int' [-Werror,-Winteger-overflow] Test: presubmit Change-Id: I58ba8f63789e84e7077f8dda58a2d21242175e4b
-rw-r--r--power-libperfmgr/libperfmgr/tests/RequestGroupTest.cc2
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);
}