diff options
author | Elliott Hughes <enh@google.com> | 2020-05-19 10:29:03 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2020-05-19 10:29:03 -0700 |
commit | 67484eb5d5fbbd1b9a11b9f3a9fc17d870e83512 (patch) | |
tree | 4f22b186fa50ee6c4564dec4547fa1f21efbac3a /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 88536883e26cea512c95da0e6391d0f82403ea45 (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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions