diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-20 11:55:20 +0100 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-20 11:55:20 +0100 |
commit | 3c8f7a8f6b52098364fadc0c0d946825282f112c (patch) | |
tree | 4e0e8ee85f667ab1ef583cb3948e2f4d1d4f6be6 /tests | |
parent | 9785b1e21be1e3e3c87b290d5f5edc9b0cc6532f (diff) | |
parent | e89cef40506d990a982aefedfde7d3ca4f88c524 (diff) | |
download | ffmpeg-3c8f7a8f6b52098364fadc0c0d946825282f112c.tar.gz |
Merge commit 'e89cef40506d990a982aefedfde7d3ca4f88c524'
* commit 'e89cef40506d990a982aefedfde7d3ca4f88c524':
checkasm: Read the unsigned value as it should
Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checkasm/checkasm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index ecfa5d2109..efbce3250b 100644 --- a/tests/checkasm/checkasm.c +++ b/tests/checkasm/checkasm.c @@ -502,7 +502,8 @@ static void print_cpu_name(void) int main(int argc, char *argv[]) { - int i, seed, ret = 0; + unsigned int seed; + int i, ret = 0; #if ARCH_ARM && HAVE_ARMV5TE_EXTERNAL if (have_vfp(av_get_cpu_flags()) || have_neon(av_get_cpu_flags())) @@ -529,7 +530,7 @@ int main(int argc, char *argv[]) argv++; } - seed = (argc > 1) ? atoi(argv[1]) : av_get_random_seed(); + seed = (argc > 1) ? strtoul(argv[1], NULL, 10) : av_get_random_seed(); fprintf(stderr, "checkasm: using random seed %u\n", seed); av_lfg_init(&checkasm_lfg, seed); |