commit | bf4060cf39dc2a639d935fe66606ebdbe32708d3 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue May 19 10:29:03 2020 -0700 |
committer | rohan <purohit.rohan@gmail.com> | Sat May 30 13:36:09 2020 -0400 |
tree | b6176699fc69e58ee7d207ed4f515c419f140ce7 | |
parent | b60eceb6e5cc3794b5a0dba60c04eeb86362fb6c [diff] |
AlarmManagerService.setKernelTime: fix incorrect limit. There is no TIME_T_MAX, so someone wrote INT_MAX instead. Use std::numeric_limits<time_t>::max() so we can get the right answer on both 32-bit and 64-bit systems. Bug: http://b/156317457 Test: treehugger Change-Id: I19fdee8601f8b59c4ee0959d59be946bfab6e4d0 Signed-off-by: Joey Huab <joey@evolution-x.org>