diff options
author | Yi Kong <yikong@google.com> | 2019-11-23 12:56:16 -0800 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2020-02-24 13:58:50 +0000 |
commit | 3416d89e435c9feccd54cc2258e547fa7fcf0a01 (patch) | |
tree | 78fefabac1a6d241a0b71729417ef3ad91c7b49d /apf_run.c | |
parent | 6ef6218a98992a7c7fba25e8eed0b57dd76a5519 (diff) | |
download | apf-3416d89e435c9feccd54cc2258e547fa7fcf0a01.tar.gz |
Maximum value of uint32_t should be UINT32_MAX instead of ULONG_MAX
Fixes tautological-constant-out-of-range-compare warning.
Bug: 72331526
Test: presubmit
Change-Id: Ie71f5a57fad298a9cb035b5e7430af617b438ab8
Diffstat (limited to 'apf_run.c')
-rw-r--r-- | apf_run.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -237,7 +237,7 @@ int main(int argc, char* argv[]) { case OPT_AGE: errno = 0; filter_age = strtoul(optarg, &endptr, 10); - if ((errno == ERANGE && filter_age == ULONG_MAX) || + if ((errno == ERANGE && filter_age == UINT32_MAX) || (errno != 0 && filter_age == 0)) { perror("Error on age option: strtoul"); exit(1); |